Class: Flipper::Types::Boolean
- Inherits:
-
Flipper::Type
- Object
- Flipper::Type
- Flipper::Types::Boolean
- Defined in:
- lib/flipper/types/boolean.rb
Instance Attribute Summary
Attributes inherited from Flipper::Type
Instance Method Summary collapse
-
#initialize(value = nil) ⇒ Boolean
constructor
A new instance of Boolean.
Methods inherited from Flipper::Type
Constructor Details
#initialize(value = nil) ⇒ Boolean
Returns a new instance of Boolean.
4 5 6 |
# File 'lib/flipper/types/boolean.rb', line 4 def initialize(value = nil) @value = value.nil? ? true : Typecast.to_boolean(value) end |