Class: Rigor::Type::Bot
- Inherits:
-
Object
- Object
- Rigor::Type::Bot
- Includes:
- AcceptanceRouter
- Defined in:
- lib/rigor/type/bot.rb,
sig/rigor/type.rbs
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 ⇒ Bot
readonly
Returns the value of attribute instance.
Instance Method Summary collapse
- #==(other) ⇒ Boolean (also: #eql?)
- #accepts ⇒ AcceptsResult
- #bot ⇒ Trinary
- #describe(_verbosity = :short) ⇒ String
- #dynamic ⇒ Trinary
- #erase_to_rbs ⇒ "bot"
- #hash ⇒ Integer
- #inspect ⇒ "#<Rigor::Type::Bot>"
- #top ⇒ Trinary
Class Attribute Details
.instance ⇒ Bot (readonly)
Returns the value of attribute instance.
16 17 18 |
# File 'lib/rigor/type/bot.rb', line 16 def instance @instance end |
Instance Method Details
#==(other) ⇒ Boolean Also known as: eql?
43 44 45 |
# File 'lib/rigor/type/bot.rb', line 43 def ==(other) other.is_a?(Bot) end |
#accepts ⇒ AcceptsResult
50 |
# File 'sig/rigor/type.rbs', line 50
def accepts: (Type::t other, ?mode: accepts_mode) -> AcceptsResult
|
#describe(_verbosity = :short) ⇒ String
21 22 23 |
# File 'lib/rigor/type/bot.rb', line 21 def describe(_verbosity = :short) "bot" end |
#inspect ⇒ "#<Rigor::Type::Bot>"
52 53 54 |
# File 'lib/rigor/type/bot.rb', line 52 def inspect "#<Rigor::Type::Bot>" end |