Class: Rigor::Type::Bot
- Inherits:
-
Object
- Object
- Rigor::Type::Bot
- Includes:
- AcceptanceRouter
- 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?)
- #bot ⇒ Object
- #describe(_verbosity = :short) ⇒ Object
- #dynamic ⇒ Object
- #erase_to_rbs ⇒ Object
- #hash ⇒ Object
- #inspect ⇒ Object
- #top ⇒ Object
Methods included from AcceptanceRouter
Class Attribute Details
.instance ⇒ Object (readonly)
Returns the value of attribute instance.
18 19 20 |
# File 'lib/rigor/type/bot.rb', line 18 def instance @instance end |
Instance Method Details
#==(other) ⇒ Object Also known as: eql?
45 46 47 |
# File 'lib/rigor/type/bot.rb', line 45 def ==(other) other.is_a?(Bot) end |
#describe(_verbosity = :short) ⇒ Object
23 24 25 |
# File 'lib/rigor/type/bot.rb', line 23 def describe(_verbosity = :short) "bot" end |
#erase_to_rbs ⇒ Object
27 28 29 |
# File 'lib/rigor/type/bot.rb', line 27 def erase_to_rbs "bot" end |
#hash ⇒ Object
50 51 52 |
# File 'lib/rigor/type/bot.rb', line 50 def hash Bot.hash end |
#inspect ⇒ Object
54 55 56 |
# File 'lib/rigor/type/bot.rb', line 54 def inspect "#<Rigor::Type::Bot>" end |