Class: RubyCop::Ruby::Arg
Direct Known Subclasses
Instance Attribute Summary collapse
-
#arg ⇒ Object
readonly
Returns the value of attribute arg.
Instance Method Summary collapse
-
#initialize(arg) ⇒ Arg
constructor
A new instance of Arg.
Methods inherited from Node
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
#arg ⇒ Object (readonly)
Returns the value of attribute arg.
20 21 22 |
# File 'lib/ruby_cop/ruby/args.rb', line 20 def arg @arg end |