Class: RBS::Inline::AST::Annotations::Embedded

Inherits:
Base
  • Object
show all
Defined in:
lib/rbs/inline/ast/annotations.rb

Overview

‘# @rbs!` annotation

Instance Attribute Summary collapse

Attributes inherited from Base

#source, #tree

Instance Method Summary collapse

Constructor Details

#initialize(tree, source) ⇒ Embedded

Returns a new instance of Embedded.



591
592
593
594
595
596
# File 'lib/rbs/inline/ast/annotations.rb', line 591

def initialize(tree, source)
  @tree = tree
  @source = source

  @content = tree.nth_token!(1)[1]
end

Instance Attribute Details

#contentObject (readonly)

: String



588
589
590
# File 'lib/rbs/inline/ast/annotations.rb', line 588

def content
  @content
end