Class: Steep::AST::Types::Bot

Inherits:
Object
  • Object
show all
Extended by:
SharedInstance
Includes:
Helper::NoChild, Helper::NoFreeVariables
Defined in:
lib/steep/ast/types/bot.rb

Instance Method Summary collapse

Methods included from SharedInstance

instance

Methods included from Helper::NoChild

#each_child, #map_type

Methods included from Helper::NoFreeVariables

#free_variables

Instance Method Details

#==(other) ⇒ Object Also known as: eql?



7
8
9
# File 'lib/steep/ast/types/bot.rb', line 7

def ==(other)
  other.is_a?(Bot)
end

#hashObject



11
12
13
# File 'lib/steep/ast/types/bot.rb', line 11

def hash
  self.class.hash
end

#levelObject



29
30
31
# File 'lib/steep/ast/types/bot.rb', line 29

def level
  [2]
end

#subst(s) ⇒ Object



17
18
19
# File 'lib/steep/ast/types/bot.rb', line 17

def subst(s)
  self
end

#to_sObject



21
22
23
# File 'lib/steep/ast/types/bot.rb', line 21

def to_s
  "bot"
end