class Mumukit::Sync::Inflator::SingleChoice

Public Instance Methods

choices_to_test(choices) click to toggle source
# File lib/mumukit/sync/inflator/single_choice.rb, line 7
def choices_to_test(choices)
  choice = choices.find { |choice| choice[:checked] }
  {'equal' => choice[:value]}.to_yaml
end
editor_type() click to toggle source
# File lib/mumukit/sync/inflator/single_choice.rb, line 3
def editor_type
  'single_choice'
end