Class: Solargraph::Pin::Directed::Method

Inherits:
Method
  • Object
show all
Defined in:
lib/solargraph/pin/directed/method.rb

Instance Attribute Summary

Attributes inherited from Method

#scope, #visibility

Attributes inherited from Base

#namespace, #node, #source

Instance Method Summary collapse

Methods inherited from Method

#kind, #parameters, #path, #return_type

Methods inherited from Base

#docstring, #filename, #kind, #location, #parameters, #path, #return_type, #signature, #value

Constructor Details

#initialize(source, node, namespace, scope, visibility, docstring, name) ⇒ Method

Returns a new instance of Method.



5
6
7
8
9
# File 'lib/solargraph/pin/directed/method.rb', line 5

def initialize source, node, namespace, scope, visibility, docstring, name
  super(source, node, namespace, scope, visibility)
  @docstring = docstring
  @name = name
end

Instance Method Details

#nameObject



11
12
13
# File 'lib/solargraph/pin/directed/method.rb', line 11

def name
  @name
end