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.



118
119
120
121
# File 'lib/rbs/inline/ast/annotations.rb', line 118

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

Instance Attribute Details

#sourceObject (readonly)

: CommentLines



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

def source
  @source
end

#treeObject (readonly)

: Tree



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

def tree
  @tree
end