Class: Rigor::Type::Bot
- Inherits:
-
Object
- Object
- Rigor::Type::Bot
- Defined in:
- lib/rigor/type/bot.rb
Overview
The bottom of the value lattice: contains no values. The result type of expressions that cannot terminate normally. See docs/type-specification/special-types.md.
Class Attribute Summary collapse
-
.instance ⇒ Object
readonly
Returns the value of attribute instance.
Instance Method Summary collapse
- #==(other) ⇒ Object (also: #eql?)
- #accepts(other, mode: :gradual) ⇒ Object
- #bot ⇒ Object
- #describe(_verbosity = :short) ⇒ Object
- #dynamic ⇒ Object
- #erase_to_rbs ⇒ Object
- #hash ⇒ Object
- #inspect ⇒ Object
- #top ⇒ Object
Class Attribute Details
.instance ⇒ Object (readonly)
Returns the value of attribute instance.
17 18 19 |
# File 'lib/rigor/type/bot.rb', line 17 def instance @instance end |
Instance Method Details
#==(other) ⇒ Object Also known as: eql?
46 47 48 |
# File 'lib/rigor/type/bot.rb', line 46 def ==(other) other.is_a?(Bot) end |
#accepts(other, mode: :gradual) ⇒ Object
42 43 44 |
# File 'lib/rigor/type/bot.rb', line 42 def accepts(other, mode: :gradual) Inference::Acceptance.accepts(self, other, mode: mode) end |
#describe(_verbosity = :short) ⇒ Object
22 23 24 |
# File 'lib/rigor/type/bot.rb', line 22 def describe(_verbosity = :short) "bot" end |
#erase_to_rbs ⇒ Object
26 27 28 |
# File 'lib/rigor/type/bot.rb', line 26 def erase_to_rbs "bot" end |
#hash ⇒ Object
51 52 53 |
# File 'lib/rigor/type/bot.rb', line 51 def hash Bot.hash end |
#inspect ⇒ Object
55 56 57 |
# File 'lib/rigor/type/bot.rb', line 55 def inspect "#<Rigor::Type::Bot>" end |