Class: RBS::AST::Ruby::Members::ModuleSelfMember

Inherits:
Base
  • Object
show all
Defined in:
lib/rbs/ast/ruby/members.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#buffer

Instance Method Summary collapse

Methods included from Helpers::LocationHelper

#rbs_location

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

#annotationObject (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

#argsObject



744
745
746
# File 'lib/rbs/ast/ruby/members.rb', line 744

def args
  annotation.args
end

#locationObject



748
749
750
# File 'lib/rbs/ast/ruby/members.rb', line 748

def location
  annotation.location
end

#nameObject



740
741
742
# File 'lib/rbs/ast/ruby/members.rb', line 740

def name
  annotation.name
end

#type_fingerprintObject



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