Class: RBS::AST::Ruby::Annotations::Base
- Inherits:
-
Object
- Object
- RBS::AST::Ruby::Annotations::Base
- Defined in:
- lib/rbs/ast/ruby/annotations.rb
Direct Known Subclasses
AliasAnnotation, BlockParamTypeAnnotation, ColonMethodTypeAnnotation, DoubleSplatParamTypeAnnotation, InstanceVariableAnnotation, MethodTypesAnnotation, NodeTypeAssertion, ParamTypeAnnotation, ReturnTypeAnnotation, SkipAnnotation, SplatParamTypeAnnotation, TypeApplicationAnnotation
Instance Attribute Summary collapse
-
#location ⇒ Object
readonly
Returns the value of attribute location.
-
#prefix_location ⇒ Object
readonly
Returns the value of attribute prefix_location.
Instance Method Summary collapse
- #buffer ⇒ Object
-
#initialize(location, prefix_location) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(location, prefix_location) ⇒ Base
Returns a new instance of Base.
10 11 12 13 |
# File 'lib/rbs/ast/ruby/annotations.rb', line 10 def initialize(location, prefix_location) @location = location @prefix_location = prefix_location end |
Instance Attribute Details
#location ⇒ Object (readonly)
Returns the value of attribute location.
8 9 10 |
# File 'lib/rbs/ast/ruby/annotations.rb', line 8 def location @location end |
#prefix_location ⇒ Object (readonly)
Returns the value of attribute prefix_location.
8 9 10 |
# File 'lib/rbs/ast/ruby/annotations.rb', line 8 def prefix_location @prefix_location end |
Instance Method Details
#buffer ⇒ Object
15 16 17 |
# File 'lib/rbs/ast/ruby/annotations.rb', line 15 def buffer location.buffer end |