Class: RBS::Inline::AST::Annotations::Base
- Inherits:
-
Object
- Object
- RBS::Inline::AST::Annotations::Base
- Defined in:
- lib/rbs/inline/ast/annotations.rb
Direct Known Subclasses
Application, BlockType, ClassDecl, Dot3Assertion, Embedded, Generic, Inherits, IvarType, Method, MethodTypeAssertion, ModuleDecl, ModuleSelf, Override, RBSAnnotation, ReturnType, Skip, SpecialVarTypeAnnotation, SyntaxErrorAssertion, TypeAssertion, Use, VarType
Instance Attribute Summary collapse
-
#source ⇒ Object
readonly
: CommentLines.
-
#tree ⇒ Object
readonly
: Tree.
Instance Method Summary collapse
-
#initialize(tree, source) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(tree, source) ⇒ Base
Returns a new instance of Base.
117 118 119 120 |
# File 'lib/rbs/inline/ast/annotations.rb', line 117 def initialize(tree, source) @tree = tree @source = source end |
Instance Attribute Details
#source ⇒ Object (readonly)
: CommentLines
111 112 113 |
# File 'lib/rbs/inline/ast/annotations.rb', line 111 def source @source end |
#tree ⇒ Object (readonly)
: Tree
112 113 114 |
# File 'lib/rbs/inline/ast/annotations.rb', line 112 def tree @tree end |