Lines Matching defs:hash
664 group_by_i(VALUE i, VALUE hash, int argc, VALUE *argv)
672 values = rb_hash_aref(hash, group);
675 rb_hash_aset(hash, group, values);
688 * Groups the collection by result of the block. Returns a hash where the
701 VALUE hash;
705 hash = rb_hash_new();
706 rb_block_call(obj, id_each, 0, 0, group_by_i, hash);
707 OBJ_INFECT(hash, obj);
709 return hash;
1664 * hash = Hash.new
1666 * hash[item] = index
1668 * hash #=> {"cat"=>0, "dog"=>1, "wombat"=>2}