kernel/core/array.rb
# Produces a printable string of the Array. The string 
# is constructed by calling #inspect on all elements.
# Descends through contained Arrays, recursive ones
# are indicated as [...].
Produces a printable string of the Array. The string
is constructed by calling #inspect on all elements.
Descends through contained Arrays, recursive ones
are indicated as [...].
Produces a printable string of the Array . The string is constructed by calling #inspect on all elements . Descends through contained Arrays recursive ones are indicated as [ ... ] .
def inspect()
    return "[...]" if RecursionGuard.inspecting?(self)
    out = []
    RecursionGuard.inspect(self) do
      each { |o|
        out << o.inspect
      }
    end
    "[#{out.join ', '}]"
  end
def inspect ( ) return "[...]" if RecursionGuard . inspecting? ( self ) out = [ ] RecursionGuard . inspect ( self ) do each { | o | out << o . inspect } end "[#{out.join ', '}]" end
Produces a printable string of the Array.
Produces a printable string of the Array .