Class: RubyCop::Ruby::Args
Instance Attribute Summary collapse
-
#block ⇒ Object
readonly
Returns the value of attribute block.
Attributes inherited from List
Instance Method Summary collapse
Methods inherited from List
Methods inherited from Node
Constructor Details
This class inherits a constructor from RubyCop::Ruby::List
Instance Attribute Details
#block ⇒ Object (readonly)
Returns the value of attribute block.
4 5 6 |
# File 'lib/ruby_cop/ruby/args.rb', line 4 def block @block end |
Instance Method Details
#add_block(block) ⇒ Object
6 7 8 |
# File 'lib/ruby_cop/ruby/args.rb', line 6 def add_block(block) @block = block end |
#to_array ⇒ Object
10 11 12 |
# File 'lib/ruby_cop/ruby/args.rb', line 10 def to_array Array.new(@elements) end |