kernel/core/array.rb
# Returns self except on subclasses which are converted
# or 'upcast' to Arrays.
Returns self except on subclasses which are converted
or 'upcast' to Arrays.
Returns self except on subclasses which are converted or ' upcast ' to Arrays .
def to_a()
    if self.class == Array
      self
    else
      Array.new(self[0..-1])
    end
  end
def to_a ( ) if self . class == Array self else Array . new ( self [ 0 .. - 1 ] ) end end
Returns self except on subclasses which are converted
or 'upcast' to Arrays.
Returns self except on subclasses which are converted or ' upcast ' to Arrays .