Class: Steep::AST::Types::Name::Base

Inherits:
Object
  • Object
show all
Includes:
Helper::NoFreeVariables
Defined in:
lib/steep/ast/types/name.rb

Direct Known Subclasses

Applying, Singleton

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Helper::NoFreeVariables

#free_variables

Constructor Details

#initialize(name:) ⇒ Base

Returns a new instance of Base.



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

def initialize(name:)
  @name = name
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



6
7
8
# File 'lib/steep/ast/types/name.rb', line 6

def name
  @name
end

Instance Method Details

#levelObject



18
19
20
# File 'lib/steep/ast/types/name.rb', line 18

def level
  [0]
end

#map_type(&block) ⇒ Object



22
23
24
# File 'lib/steep/ast/types/name.rb', line 22

def map_type(&block)
  self
end

#subst(s) ⇒ Object



14
15
16
# File 'lib/steep/ast/types/name.rb', line 14

def subst(s)
  self
end