diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-07-24 09:07:33 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2001-07-24 09:07:33 +0000 |
commit | aff96b07a8513f4bb58feace7826e125e16a7eaf (patch) | |
tree | f27d9d12e2cda0dca1435e1f0567d9fb423c7230 /object.c | |
parent | c886b360e4379a66ac96167fb3af69c969463efa (diff) | |
download | ruby-aff96b07a8513f4bb58feace7826e125e16a7eaf.tar.gz ruby-aff96b07a8513f4bb58feace7826e125e16a7eaf.tar.xz ruby-aff96b07a8513f4bb58feace7826e125e16a7eaf.zip |
* eval.c (rb_provide_feature): should not tweak extension used for
loading.
* io.c (io_fread): use fread(3) if PENDING_COUND is available.
* class.c (rb_mod_include_p): Module#include? added. [new]
* re.c (ignorecase_setter): give warning on modifying $=.
* string.c (rb_str_casecmp): new method. [new]
* string.c (rb_str_eql): separated from rb_str_equal(), make it
always be case sensitive. [new]
* string.c (rb_str_hash): made it always be case sensitive.
* eval.c (rb_f_require): should not include path in $" value
* file.c (rb_find_file): should return 0 explicitly on failure.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'object.c')
-rw-r--r-- | object.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -956,7 +956,7 @@ rb_Float(val) d = strtod(p, &end); if (p == end) { bad: - rb_raise(rb_eArgError, "invalid value for Float: \"%s\"", q); + rb_raise(rb_eArgError, "invalid value for Float(): \"%s\"", q); } if (*end) { if (*end == '_') { @@ -1232,6 +1232,7 @@ Init_Object() rb_define_method(rb_cModule, "dup", rb_mod_dup, 0); rb_define_method(rb_cModule, "to_s", rb_mod_to_s, 0); rb_define_method(rb_cModule, "included_modules", rb_mod_included_modules, 0); + rb_define_method(rb_cModule, "include?", rb_mod_include_p, 1); rb_define_method(rb_cModule, "name", rb_mod_name, 0); rb_define_method(rb_cModule, "ancestors", rb_mod_ancestors, 0); |