Class: Literal::Types::NeverType Private
- Inherits:
-
Object
- Object
- Literal::Types::NeverType
- Includes:
- Literal::Type
- Defined in:
- lib/literal/types/never_type.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Constant Summary collapse
- Instance =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
new.freeze
Instance Method Summary collapse
- #<=(_other, context: nil) ⇒ Object private
- #===(value) ⇒ Object private
- #>=(other, context: nil) ⇒ Object private
- #inspect ⇒ Object private
Instance Method Details
#<=(_other, context: nil) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
26 27 28 |
# File 'lib/literal/types/never_type.rb', line 26 def <=(_other, context: nil) true end |
#===(value) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
13 14 15 |
# File 'lib/literal/types/never_type.rb', line 13 def ===(value) false end |
#>=(other, context: nil) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
17 18 19 20 21 22 23 24 |
# File 'lib/literal/types/never_type.rb', line 17 def >=(other, context: nil) case other when Literal::Types::NeverType true else false end end |
#inspect ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
9 10 11 |
# File 'lib/literal/types/never_type.rb', line 9 def inspect "_Never" end |