summaryrefslogtreecommitdiff
path: root/rational.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-08-22 08:01:42 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-08-22 08:01:42 (GMT)
commit9261f25e0fadc0d0e5124b2f4b3b5549f56f7ad0 (patch)
treef74e339b31ffc5eef3737b572551090b5083b5bb /rational.c
parentf024d46f1155b0e9e6d767636f0ce8a9ca2efc65 (diff)
provide backward compatibilities
* complex.c (Init_Complex): provide the feature for backward compatibility. * rational.c (Init_Rational): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47249 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'rational.c')
-rw-r--r--rational.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/rational.c b/rational.c
index e504979..23b4bb0 100644
--- a/rational.c
+++ b/rational.c
@@ -2614,6 +2614,8 @@ Init_Rational(void)
rb_define_method(rb_cString, "to_r", string_to_r, 0);
rb_define_private_method(CLASS_OF(rb_cRational), "convert", nurat_s_convert, -1);
+
+ rb_provide("rational.so"); /* for backward compatibility */
}
/*