Merge pull request #65 from cremno/define-case-and-hash-equality-for-etc-classes

define case and hash equality for etc classes
This commit is contained in:
Jonas Kulla 2014-09-02 20:02:47 +02:00
commit 8975255ecf
1 changed files with 2 additions and 0 deletions

View File

@ -177,6 +177,8 @@ INITCOPY_FUN(Rect)
_rb_define_method(klass, "initialize_copy", Klass##InitializeCopy); \
_rb_define_method(klass, "set", Klass##Set); \
_rb_define_method(klass, "==", Klass##Equal); \
_rb_define_method(klass, "===", Klass##Equal); \
_rb_define_method(klass, "eql?", Klass##Equal); \
_rb_define_method(klass, "to_s", Klass##Stringify); \
_rb_define_method(klass, "inspect", Klass##Stringify); \
}