Class: Literal::Types::BooleanType

Inherits:
Object
  • Object
show all
Includes:
Literal::Type
Defined in:
lib/literal/opal_compat.rb

Constant Summary collapse

Instance =
new

Instance Method Summary collapse

Instance Method Details

#===(value) ⇒ Object



29
# File 'lib/literal/opal_compat.rb', line 29

def ===(value) = true == value || false == value

#>=(other, context: nil) ⇒ Object



31
32
33
# File 'lib/literal/opal_compat.rb', line 31

def >=(other, context: nil)
  true == other || false == other || Literal::Types::BooleanType === other
end

#inspectObject



27
# File 'lib/literal/opal_compat.rb', line 27

def inspect = "_Boolean"