Class: RBS::AST::Ruby::Members::ModuleSelfMember
- 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
- #args ⇒ Object
-
#initialize(buffer, annotation) ⇒ ModuleSelfMember
constructor
A new instance of ModuleSelfMember.
- #location ⇒ Object
- #name ⇒ Object
- #type_fingerprint ⇒ Object
Methods included from Helpers::LocationHelper
Constructor Details
#initialize(buffer, annotation) ⇒ ModuleSelfMember
Returns a new instance of ModuleSelfMember.
735 736 737 738 |
# File 'lib/rbs/ast/ruby/members.rb', line 735 def initialize(buffer, annotation) super(buffer) @annotation = annotation end |
Instance Attribute Details
#annotation ⇒ Object (readonly)
Returns the value of attribute annotation.
733 734 735 |
# File 'lib/rbs/ast/ruby/members.rb', line 733 def annotation @annotation end |
Instance Method Details
#args ⇒ Object
744 745 746 |
# File 'lib/rbs/ast/ruby/members.rb', line 744 def args annotation.args end |
#location ⇒ Object
748 749 750 |
# File 'lib/rbs/ast/ruby/members.rb', line 748 def location annotation.location end |
#name ⇒ Object
740 741 742 |
# File 'lib/rbs/ast/ruby/members.rb', line 740 def name annotation.name end |
#type_fingerprint ⇒ Object
752 753 754 755 756 757 |
# File 'lib/rbs/ast/ruby/members.rb', line 752 def type_fingerprint [ "members/module_self", annotation.type_fingerprint ] end |