Class: Boolean
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(value) ⇒ Boolean
constructor
A new instance of Boolean.
Methods inherited from Any
Constructor Details
#initialize(value) ⇒ Boolean
Returns a new instance of Boolean.
40 |
# File 'lib/types/boolean.rb', line 40 def initialize(value) = super(setup_value(value)) |
Class Method Details
.t(value) ⇒ Object
8 9 10 11 12 |
# File 'lib/types/boolean.rb', line 8 def t(value) raise RubytTypeError.new(Boolean, value.class) unless value.is_a? Boolean value end |