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.



4
5
6
# File 'lib/flipper/types/boolean.rb', line 4

def initialize(value = nil)
  @value = value.nil? ? true : Typecast.to_boolean(value)
end