Class: Steep::AST::Types::Name::Base
- Includes:
- Helper::NoFreeVariables
- Defined in:
- lib/steep/ast/types/name.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name:) ⇒ Base
constructor
A new instance of Base.
- #level ⇒ Object
- #map_type(&block) ⇒ Object
- #subst(s) ⇒ Object
Methods included from Helper::NoFreeVariables
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
#name ⇒ Object (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
#level ⇒ Object
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 |