Class: Rubycop::Analyzer::Ruby::Method
- Defined in:
- lib/rubycop/analyzer/ruby/definitions.rb
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
-
#identifier ⇒ Object
readonly
Returns the value of attribute identifier.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#target ⇒ Object
readonly
Returns the value of attribute target.
Instance Method Summary collapse
-
#initialize(target, identifier, params, body) ⇒ Method
constructor
A new instance of Method.
Methods inherited from Node
Constructor Details
#initialize(target, identifier, params, body) ⇒ Method
Returns a new instance of Method.
5 6 7 8 9 10 |
# File 'lib/rubycop/analyzer/ruby/definitions.rb', line 5 def initialize(target, identifier, params, body) @target = target @identifier = identifier @params = params @body = body end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
15 16 17 |
# File 'lib/rubycop/analyzer/ruby/definitions.rb', line 15 def body @body end |
#identifier ⇒ Object (readonly)
Returns the value of attribute identifier.
13 14 15 |
# File 'lib/rubycop/analyzer/ruby/definitions.rb', line 13 def identifier @identifier end |
#params ⇒ Object (readonly)
Returns the value of attribute params.
14 15 16 |
# File 'lib/rubycop/analyzer/ruby/definitions.rb', line 14 def params @params end |
#target ⇒ Object (readonly)
Returns the value of attribute target.
12 13 14 |
# File 'lib/rubycop/analyzer/ruby/definitions.rb', line 12 def target @target end |