Project

General

Profile

Bug #1534 ยป struct.c-to_s.patch

ujihisa (Tatsuhiro Ujihisa), 05/29/2009 07:33 AM

View differences:

struct.c
900 900
    rb_define_method(rb_cStruct, "eql?", rb_struct_eql, 1);
901 901
    rb_define_method(rb_cStruct, "hash", rb_struct_hash, 0);
902 902

  
903
    rb_define_method(rb_cStruct, "to_s", rb_struct_inspect, 0);
904 903
    rb_define_method(rb_cStruct, "inspect", rb_struct_inspect, 0);
904
    rb_define_alias(rb_cStruct,  "to_s", "inspect");
905 905
    rb_define_method(rb_cStruct, "to_a", rb_struct_to_a, 0);
906 906
    rb_define_method(rb_cStruct, "values", rb_struct_to_a, 0);
907 907
    rb_define_method(rb_cStruct, "size", rb_struct_size, 0);