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
Instance Method Summary
::RBS::AST::Ruby::Helpers::LocationHelper - Included
Constructor Details
.new(buffer, annotation) ⇒ InstanceVariableMember
# 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