Class: RBS::AST::Ruby::Members::ModuleSelfMember
- Defined in:
- lib/rbs/ast/ruby/members.rb,
sig/ast/ruby/members.rbs
Instance Attribute Summary collapse
-
#annotation ⇒ Annotations::ModuleSelfAnnotation
readonly
Returns the value of attribute annotation.
Attributes inherited from Base
Instance Method Summary collapse
- #args ⇒ Array[Types::t]
-
#initialize(buffer, annotation) ⇒ ModuleSelfMember
constructor
A new instance of ModuleSelfMember.
- #location ⇒ Location
- #name ⇒ TypeName
- #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 ⇒ Annotations::ModuleSelfAnnotation (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 ⇒ Array[Types::t]
744 745 746 |
# File 'lib/rbs/ast/ruby/members.rb', line 744 def args annotation.args end |
#location ⇒ Location
748 749 750 |
# File 'lib/rbs/ast/ruby/members.rb', line 748 def location annotation.location end |
#name ⇒ TypeName
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 |