Class: Steep::AST::Types::Name::Instance

Inherits:
Applying show all
Defined in:
lib/steep/ast/types/name.rb

Instance Attribute Summary

Attributes inherited from Applying

#args

Attributes inherited from Base

#location, #name

Instance Method Summary collapse

Methods inherited from Applying

#==, #free_variables, #hash, #initialize, #level, #subst, #to_s, #with_location

Methods included from Helper::ChildrenLevel

#level_of_children

Methods inherited from Base

#free_variables, #initialize, #level, #subst

Constructor Details

This class inherits a constructor from Steep::AST::Types::Name::Applying

Instance Method Details

#to_class(constructor:) ⇒ Object



152
153
154
# File 'lib/steep/ast/types/name.rb', line 152

def to_class(constructor:)
  Class.new(name: name, location: location, constructor: constructor)
end

#to_moduleObject



156
157
158
# File 'lib/steep/ast/types/name.rb', line 156

def to_module
  Module.new(name: name, location: location)
end