Class: Konstruo::Boolean

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Defined in:
lib/konstruo.rb

Class Method Summary collapse

Class Method Details

.boolean?(value) ⇒ Boolean

Returns:



15
16
17
# File 'lib/konstruo.rb', line 15

def self.boolean?(value)
  value.is_a?(TrueClass) || value.is_a?(FalseClass)
end