Method: Struct#hash

Defined in:
struct.c

#hashFixnum

Return a hash value based on this struct's contents.

Returns:


# File 'struct.c'

/*
 * call-seq:
 *   struct.hash   -> fixnum
 *
 * Return a hash value based on this struct's contents.
 */

static VALUE
rb_struct_hash(VALUE s)
{
    return rb_exec_recursive_outer(recursive_hash, s, 0);
}