Class: Steep::AST::Types::Void
- Extended by:
- SharedInstance
- Includes:
- Helper::NoChild, Helper::NoFreeVariables
- Defined in:
- lib/steep/ast/types/void.rb
Instance Method Summary collapse
Methods included from SharedInstance
Methods included from Helper::NoChild
Methods included from Helper::NoFreeVariables
Instance Method Details
#==(other) ⇒ Object Also known as: eql?
7 8 9 |
# File 'lib/steep/ast/types/void.rb', line 7 def ==(other) other.is_a?(Void) end |
#hash ⇒ Object
11 12 13 |
# File 'lib/steep/ast/types/void.rb', line 11 def hash self.class.hash end |
#level ⇒ Object
29 30 31 |
# File 'lib/steep/ast/types/void.rb', line 29 def level [0] end |
#subst(s) ⇒ Object
17 18 19 |
# File 'lib/steep/ast/types/void.rb', line 17 def subst(s) self end |
#to_s ⇒ Object
21 22 23 |
# File 'lib/steep/ast/types/void.rb', line 21 def to_s "void" end |