Class: Literal::Types::FalsyType

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



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

def ===(value) = !value

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



45
46
47
# File 'lib/literal/opal_compat.rb', line 45

def >=(other, context: nil)
  !other || Literal::Types::FalsyType === other
end

#inspectObject



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

def inspect = "_Falsy"