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

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Helpers::LocationHelper

#rbs_location

Methods included from Helpers::ConstantHelper

constant_as_type_name, #self?.constant_as_type_name

Constructor Details

#initialize(buffer) ⇒ Base

Returns a new instance of Base.

Parameters:



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

def initialize(buffer)
  @buffer = buffer
end

Instance Attribute Details

#bufferBuffer (readonly)

Returns the value of attribute buffer.

Returns:



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

def buffer
  @buffer
end

Instance Method Details

#type_fingerprintObject

Returns:

  • (Object)


15
# File 'sig/ast/ruby/declarations.rbs', line 15

def type_fingerprint: () -> untyped