Class: Rigor::Type::Top
- Inherits:
-
Object
- Object
- Rigor::Type::Top
- Includes:
- AcceptanceRouter
- Defined in:
- lib/rigor/type/top.rb
Overview
The top of the value lattice: contains every value, including untyped boundaries. 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.
15 16 17 |
# File 'lib/rigor/type/top.rb', line 15 def instance @instance end |
Instance Method Details
#==(other) ⇒ Object Also known as: eql?
42 43 44 |
# File 'lib/rigor/type/top.rb', line 42 def ==(other) other.is_a?(Top) end |
#describe(_verbosity = :short) ⇒ Object
20 21 22 |
# File 'lib/rigor/type/top.rb', line 20 def describe(_verbosity = :short) "top" end |
#erase_to_rbs ⇒ Object
24 25 26 |
# File 'lib/rigor/type/top.rb', line 24 def erase_to_rbs "top" end |
#hash ⇒ Object
47 48 49 |
# File 'lib/rigor/type/top.rb', line 47 def hash Top.hash end |
#inspect ⇒ Object
51 52 53 |
# File 'lib/rigor/type/top.rb', line 51 def inspect "#<Rigor::Type::Top>" end |