Class: RBS::AST::Ruby::Declarations::Base

Inherits:
Object
  • Object
show all
Includes:
Helpers::ConstantHelper, Helpers::LocationHelper
Defined in:
lib/rbs/ast/ruby/declarations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Helpers::LocationHelper

#rbs_location

Methods included from Helpers::ConstantHelper

constant_as_type_name

Constructor Details

#initialize(buffer) ⇒ Base

Returns a new instance of Base.



13
14
15
# File 'lib/rbs/ast/ruby/declarations.rb', line 13

def initialize(buffer)
  @buffer = buffer
end

Instance Attribute Details

#bufferObject (readonly)

Returns the value of attribute buffer.



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

def buffer
  @buffer
end