diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-20 06:28:52 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-20 06:28:52 +0000 |
commit | 6a2ef9d6c30c1f6a641434850ba48ae69f9f23ca (patch) | |
tree | 9453983ed5c681e94742c87f8cdd863c40b95e71 /defs | |
parent | a1305f14ec2ae21ffe274611e31672e783d54305 (diff) | |
download | ruby-6a2ef9d6c30c1f6a641434850ba48ae69f9f23ca.tar.gz |
id.def: predefine conversion method IDs
* defs/id.def: predefine conversion method name IDs.
* object.c (conv_method_names): consitify with predefined IDs.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'defs')
-rw-r--r-- | defs/id.def | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/defs/id.def b/defs/id.def index 53ed3775ad..90d2e84074 100644 --- a/defs/id.def +++ b/defs/id.def @@ -26,6 +26,16 @@ firstline, predefined = __LINE__+1, %[\ initialize_copy initialize_clone initialize_dup + to_int + to_ary + to_str + to_sym + to_hash + to_proc + to_io + to_a + to_s + _ UScore "/*NULL*/" NULL empty? |