Class: Hash

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Instance Method Details

#rekey(method) ⇒ Object



38
39
40
41
42
43
44
45
# File 'ext/rehash/rehash.c', line 38

static VALUE
rb_hash_rekey(VALUE hash, VALUE method)
{
    rehash_arg arg;
    VALUE dup;
    dup = rb_obj_dup(hash);
    HASH_REHASH_WITH(dup, method, rb_hash_rekey_i)
}

#rekey!(method) ⇒ Object



18
19
20
21
22
23
# File 'ext/rehash/rehash.c', line 18

static VALUE
rb_hash_rekey_bang(VALUE hash, VALUE method)
{
    rehash_arg arg;
    HASH_REHASH_WITH(hash, method, rb_hash_rekey_i)
}

#revalue(method) ⇒ Object



47
48
49
50
51
52
53
54
# File 'ext/rehash/rehash.c', line 47

static VALUE
rb_hash_revalue(VALUE hash, VALUE method)
{
    rehash_arg arg;
    VALUE dup;
    dup = rb_obj_dup(hash);
    HASH_REHASH_WITH(dup, method, rb_hash_revalue_i)
}

#revalue!(method) ⇒ Object



31
32
33
34
35
36
# File 'ext/rehash/rehash.c', line 31

static VALUE
rb_hash_revalue_bang(VALUE hash, VALUE method)
{
    rehash_arg arg;
    HASH_REHASH_WITH(hash, method, rb_hash_revalue_i)
}