Class: RBS::Inline::AST::Annotations::Embedded
- Defined in:
- lib/rbs/inline/ast/annotations.rb
Overview
‘# @rbs!` annotation
Instance Attribute Summary collapse
-
#content ⇒ Object
readonly
: String.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(tree, source) ⇒ Embedded
constructor
A new instance of Embedded.
Constructor Details
#initialize(tree, source) ⇒ Embedded
Returns a new instance of Embedded.
576 577 578 579 580 581 |
# File 'lib/rbs/inline/ast/annotations.rb', line 576 def initialize(tree, source) @tree = tree @source = source @content = tree.nth_token!(1)[1] end |
Instance Attribute Details
#content ⇒ Object (readonly)
: String
573 574 575 |
# File 'lib/rbs/inline/ast/annotations.rb', line 573 def content @content end |