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.
6 7 8 |
# File 'lib/flipper/types/boolean.rb', line 6 def initialize(value = nil) @value = value.nil? ? true : Typecast.to_boolean(value) end |