Class: RBS::AST::Ruby::Annotations::Base

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(location, prefix_location) ⇒ Base

Returns a new instance of Base.



10
11
12
13
# File 'lib/rbs/ast/ruby/annotations.rb', line 10

def initialize(location, prefix_location)
  @location = location
  @prefix_location = prefix_location
end

Instance Attribute Details

#locationObject (readonly)

Returns the value of attribute location.



8
9
10
# File 'lib/rbs/ast/ruby/annotations.rb', line 8

def location
  @location
end

#prefix_locationObject (readonly)

Returns the value of attribute prefix_location.



8
9
10
# File 'lib/rbs/ast/ruby/annotations.rb', line 8

def prefix_location
  @prefix_location
end

Instance Method Details

#bufferObject



15
16
17
# File 'lib/rbs/ast/ruby/annotations.rb', line 15

def buffer
  location.buffer
end