Class: RubyCop::Ruby::Array
- Defined in:
- lib/ruby_cop/ruby/array.rb
Instance Attribute Summary
Attributes inherited from List
Instance Method Summary collapse
-
#to_array ⇒ Object
def inspect ‘[%s]’ % @elements.collect { |e| e.inspect }.join(‘, ’) end.
Methods inherited from List
Methods inherited from Node
Constructor Details
This class inherits a constructor from RubyCop::Ruby::List
Instance Method Details
#to_array ⇒ Object
def inspect
'[%s]' % @elements.collect { |e| e.inspect }.join(', ')
end
8 9 10 |
# File 'lib/ruby_cop/ruby/array.rb', line 8 def to_array self end |