Class: RiceBubble::Attributes::Boolean
- Defined in:
- lib/rice_bubble/attributes/boolean.rb
Instance Method Summary collapse
Methods inherited from Base
#call, #description, #fetch, #initialize, #optional, #valid_types
Constructor Details
This class inherits a constructor from RiceBubble::Attributes::Base
Instance Method Details
#valid?(value) ⇒ Boolean
4 5 6 |
# File 'lib/rice_bubble/attributes/boolean.rb', line 4 def valid?(value) [true, false].include?(value) end |