Method: Struct#deconstruct
- Defined in:
- struct.c
#to_a ⇒ Array
1026 1027 1028 1029 1030 |
# File 'struct.c', line 1026
static VALUE
rb_struct_to_a(VALUE s)
{
return rb_ary_new4(RSTRUCT_LEN(s), RSTRUCT_CONST_PTR(s));
}
|
1026 1027 1028 1029 1030 |
# File 'struct.c', line 1026
static VALUE
rb_struct_to_a(VALUE s)
{
return rb_ary_new4(RSTRUCT_LEN(s), RSTRUCT_CONST_PTR(s));
}
|