Class: Flipper::Types::Boolean

Inherits:
Flipper::Type show all
Defined in:
lib/flipper/types/boolean.rb

Instance Attribute Summary

Attributes inherited from Flipper::Type

#value

Instance Method Summary collapse

Methods inherited from Flipper::Type

#eql?, wrap

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