Class: Steep::AST::Types::Name::Instance
- Defined in:
- lib/steep/ast/types/name.rb
Instance Attribute Summary
Attributes inherited from Applying
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Applying
#==, #free_variables, #hash, #initialize, #level, #subst, #to_s, #with_location
Methods included from Helper::ChildrenLevel
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_module ⇒ Object
156 157 158 |
# File 'lib/steep/ast/types/name.rb', line 156 def to_module Module.new(name: name, location: location) end |