123456789_123456789_123456789_123456789_123456789_

Class: RBS::AST::Ruby::Members::InstanceVariableMember

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Base
Instance Chain:
Inherits: RBS::AST::Ruby::Members::Base
Defined in: lib/rbs/ast/ruby/members.rb

Class Method Summary

Instance Attribute Summary

Base - Inherited

Instance Method Summary

Constructor Details

.new(buffer, annotation) ⇒ InstanceVariableMember

[ GitHub ]

  
# File 'lib/rbs/ast/ruby/members.rb', line 696

def initialize(buffer, annotation)
  super(buffer)
  @annotation = annotation
end

Instance Attribute Details

#annotation (readonly)

[ GitHub ]

  
# File 'lib/rbs/ast/ruby/members.rb', line 694

attr_reader :annotation

Instance Method Details

#location

[ GitHub ]

  
# File 'lib/rbs/ast/ruby/members.rb', line 709

def location
  annotation.location
end

#name

[ GitHub ]

  
# File 'lib/rbs/ast/ruby/members.rb', line 701

def name
  annotation.ivar_name
end

#type

[ GitHub ]

  
# File 'lib/rbs/ast/ruby/members.rb', line 705

def type
  annotation.type
end

#type_fingerprint

[ GitHub ]

  
# File 'lib/rbs/ast/ruby/members.rb', line 713

def type_fingerprint
  [
    "members/instance_variable",
    annotation.type_fingerprint
  ]
end