Class: Mumukit::Sync::Inflator::SingleChoice
- Defined in:
- lib/mumukit/sync/inflator/single_choice.rb
Instance Method Summary collapse
Methods inherited from Choice
Methods inherited from Exercise
Instance Method Details
#choices_to_test(choices) ⇒ Object
7 8 9 10 |
# 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 ⇒ Object
3 4 5 |
# File 'lib/mumukit/sync/inflator/single_choice.rb', line 3 def editor_type 'single_choice' end |