lib/domkey/view/radio_group.rb in domkey-0.3.1 vs lib/domkey/view/radio_group.rb in domkey-0.4.0
- old
+ new
@@ -11,11 +11,17 @@
# It has one radio selected at all times
class RadioGroup < OptionSelectableGroup
private
- def before_set
- validate_scope
+ def set_by_symbol value
+ case value
+ when FalseClass, TrueClass
+ return #noop
+ else
+ fail(Exception::NotImplementedError, "Unknown way of setting by value: #{value.inspect}")
+ end
end
+
end
end
end