Class: RubyCop::Ruby::Arg

Inherits:
Node
  • Object
show all
Defined in:
lib/ruby_cop/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.



16
17
18
# File 'lib/ruby_cop/ruby/args.rb', line 16

def initialize(arg)
  @arg = arg
end

Instance Attribute Details

#argObject (readonly)

Returns the value of attribute arg.



20
21
22
# File 'lib/ruby_cop/ruby/args.rb', line 20

def arg
  @arg
end