Class: RBS::AST::Ruby::Members::InstanceVariableMember
- Defined in:
- lib/rbs/ast/ruby/members.rb
Instance Attribute Summary collapse
-
#annotation ⇒ Object
readonly
Returns the value of attribute annotation.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(buffer, annotation) ⇒ InstanceVariableMember
constructor
A new instance of InstanceVariableMember.
- #location ⇒ Object
- #name ⇒ Object
- #type ⇒ Object
- #type_fingerprint ⇒ Object
Methods included from Helpers::LocationHelper
Constructor Details
#initialize(buffer, annotation) ⇒ InstanceVariableMember
Returns a new instance of InstanceVariableMember.
696 697 698 699 |
# File 'lib/rbs/ast/ruby/members.rb', line 696 def initialize(buffer, annotation) super(buffer) @annotation = annotation end |
Instance Attribute Details
#annotation ⇒ Object (readonly)
Returns the value of attribute annotation.
694 695 696 |
# File 'lib/rbs/ast/ruby/members.rb', line 694 def annotation @annotation end |
Instance Method Details
#location ⇒ Object
709 710 711 |
# File 'lib/rbs/ast/ruby/members.rb', line 709 def location annotation.location end |
#name ⇒ Object
701 702 703 |
# File 'lib/rbs/ast/ruby/members.rb', line 701 def name annotation.ivar_name end |
#type ⇒ Object
705 706 707 |
# File 'lib/rbs/ast/ruby/members.rb', line 705 def type annotation.type end |
#type_fingerprint ⇒ Object
713 714 715 716 717 718 |
# File 'lib/rbs/ast/ruby/members.rb', line 713 def type_fingerprint [ "members/instance_variable", annotation.type_fingerprint ] end |