Class: Literal::Types::TruthyType
- Inherits:
-
Object
- Object
- Literal::Types::TruthyType
- Includes:
- Literal::Type
- Defined in:
- lib/literal/opal_compat.rb
Constant Summary collapse
- Instance =
new
Instance Method Summary collapse
Instance Method Details
#===(value) ⇒ Object
71 |
# File 'lib/literal/opal_compat.rb', line 71 def ===(value) = !!value |
#>=(other, context: nil) ⇒ Object
73 74 75 |
# File 'lib/literal/opal_compat.rb', line 73 def >=(other, context: nil) true == other || Literal::Types::TruthyType === other end |
#inspect ⇒ Object
69 |
# File 'lib/literal/opal_compat.rb', line 69 def inspect = "_Truthy" |