Class: Rubycop::Analyzer::Ruby::Arg

Inherits:
Node
  • Object
show all
Defined in:
lib/rubycop/analyzer/ruby/args.rb

Direct Known Subclasses

SplatArg

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Node

#accept

Constructor Details

#initialize(arg) ⇒ Arg

Returns a new instance of Arg.



17
18
19
# File 'lib/rubycop/analyzer/ruby/args.rb', line 17

def initialize(arg)
  @arg = arg
end

Instance Attribute Details

#argObject (readonly)

Returns the value of attribute arg.



21
22
23
# File 'lib/rubycop/analyzer/ruby/args.rb', line 21

def arg
  @arg
end