kernel/common/array.rb
# Returns an Array populated with the objects at the given indices of the original.
# Range arguments are given as nested Arrays as from #[].
Returns an Array populated with the objects at the given indices of the original.
Range arguments are given as nested Arrays as from #[].
Returns an Array populated with the objects at the given indices of the original . Range arguments are given as nested Arrays as from # [] .
def indexes(*args)
    warn 'Array#indexes is deprecated, use Array#values_at instead'
    out = []
    args.each { |a|
      if a.kind_of? Range
        out << self[a]
      else
        out << at(Type.coerce_to(a, Fixnum, :to_int))
      end
    }
    out
  end
def indexes ( * args ) warn 'Array#indexes is deprecated, use Array#values_at instead' out = [ ] args . each { | a | if a . kind_of? Range out << self [ a ] else out << at ( Type . coerce_to ( a , Fixnum , :to_int ) ) end } out end
Returns an Array populated with the objects at the given indices of the original.
Returns an Array populated with the objects at the given indices of the original .
args
<not_specific>