Class: RBS::Inline::AST::Annotations::Base

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

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#sourceObject (readonly)

: CommentLines



111
112
113
# File 'lib/rbs/inline/ast/annotations.rb', line 111

def source
  @source
end

#treeObject (readonly)

: Tree



112
113
114
# File 'lib/rbs/inline/ast/annotations.rb', line 112

def tree
  @tree
end