projects
/
ruby-vorbistagger.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added common aliases for Ogg::Vorbis::Comments#has_key?.
[ruby-vorbistagger.git]
/
ext
/
comments.c
diff --git
a/ext/comments.c
b/ext/comments.c
index 27ea5c7008dba528a6dff0de6e8fe6b7d6010269..b37f59146ea3067ff1902137cb554389f61731eb 100644
(file)
--- a/
ext/comments.c
+++ b/
ext/comments.c
@@
-551,6
+551,9
@@
Init_Comments (VALUE mVorbis)
rb_define_alias (c, "size", "length");
rb_define_alias (c, "each_pair", "each");
rb_define_alias (c, "size", "length");
rb_define_alias (c, "each_pair", "each");
+ rb_define_alias (c, "key?", "has_key?");
+ rb_define_alias (c, "include?", "has_key?");
+ rb_define_alias (c, "member?", "has_key?");
id_casecmp = rb_intern ("casecmp");
id_replace = rb_intern ("replace");
id_casecmp = rb_intern ("casecmp");
id_replace = rb_intern ("replace");