Permalink
Browse files

Symbol class does not have #to_r method

  • Loading branch information...
1 parent 1274d86 commit 1d655ab1de71b486054c2996a10fb4b532e5bb9e @Watson1978 Watson1978 committed Jun 22, 2012
Showing with 1 addition and 1 deletion.
  1. +0 −1 spec/frozen/tags/macruby/core/kernel/Rational_tags.txt
  2. +1 −0 symbol.c
@@ -1 +0,0 @@
-fails:Kernel.Rational raises a TypeError if the first argument is a Symbol
View
@@ -783,6 +783,7 @@ Init_Symbol(void)
// Undefine methods defined on NSString.
rb_undef_method(rb_cSymbol, "to_i");
rb_undef_method(rb_cSymbol, "to_f");
+ rb_undef_method(rb_cSymbol, "to_r");
rb_undef_method(rb_cSymbol, "to_str");
rb_objc_define_method(rb_cSymbol, "==", rsym_equal, 1);

0 comments on commit 1d655ab

Please sign in to comment.