Class: Taipu::Boolean

Inherits:
Base
  • Object
show all
Defined in:
lib/taipu/boolean.rb

Overview

The type boolean.

Instance Method Summary collapse

Methods inherited from Base

#constraints, #to_h, #to_sym

Instance Method Details

#valid?(value) ⇒ Boolean

Returns:



7
8
9
# File 'lib/taipu/boolean.rb', line 7

def valid?(value)
  value.equal?(true) || value.equal?(false)
end