Class: Steep::AST::Types::Logic::Base

Inherits:
Object
  • Object
show all
Extended by:
SharedInstance
Includes:
Helper::NoChild, Helper::NoFreeVariables
Defined in:
lib/steep/ast/types/logic.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?



20
21
22
# File 'lib/steep/ast/types/logic.rb', line 20

def ==(other)
  other.class == self.class
end

#hashObject



16
17
18
# File 'lib/steep/ast/types/logic.rb', line 16

def hash
  self.class.hash
end

#levelObject



30
31
32
# File 'lib/steep/ast/types/logic.rb', line 30

def level
  [0]
end

#subst(s) ⇒ Object



8
9
10
# File 'lib/steep/ast/types/logic.rb', line 8

def subst(s)
  self
end

#to_sObject



26
27
28
# File 'lib/steep/ast/types/logic.rb', line 26

def to_s
  "<% #{self.class} %>"
end