Class: RubyCop::Ruby::Array

Inherits:
List show all
Defined in:
lib/ruby_cop/ruby/array.rb

Instance Attribute Summary

Attributes inherited from List

#elements

Instance Method Summary collapse

Methods inherited from List

#add, #initialize

Methods inherited from Node

#accept

Constructor Details

This class inherits a constructor from RubyCop::Ruby::List

Instance Method Details

#to_arrayObject

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