Class: Steep::AST::MethodType::Params::Base
- Inherits:
-
Object
- Object
- Steep::AST::MethodType::Params::Base
- Defined in:
- lib/steep/ast/method_type.rb
Direct Known Subclasses
Optional, OptionalKeyword, Required, RequiredKeyword, Rest, RestKeyword
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
Returns the value of attribute location.
Instance Method Summary collapse
-
#initialize(location:) ⇒ Base
constructor
A new instance of Base.
- #update_location(location) ⇒ Object
Constructor Details
#initialize(location:) ⇒ Base
Returns a new instance of Base.
8 9 10 |
# File 'lib/steep/ast/method_type.rb', line 8 def initialize(location:) @location = location end |
Instance Attribute Details
#location ⇒ Object (readonly)
Returns the value of attribute location.
6 7 8 |
# File 'lib/steep/ast/method_type.rb', line 6 def location @location end |
Instance Method Details
#update_location(location) ⇒ Object
12 13 14 15 16 17 |
# File 'lib/steep/ast/method_type.rb', line 12 def update_location(location) dup.instance_eval do @location = location self end end |