Class: Rabarber::Input::Types::Boolean
- Defined in:
- lib/rabarber/input/types/boolean.rb
Instance Attribute Summary
Attributes inherited from Base
#error_message, #error_type, #value
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Rabarber::Input::Base
Instance Method Details
#valid? ⇒ Boolean
7 8 9 |
# File 'lib/rabarber/input/types/boolean.rb', line 7 def valid? [true, false].include?(value) end |