diff options
author | sorah <sorah@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-01-12 11:19:25 +0000 |
---|---|---|
committer | sorah <sorah@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-01-12 11:19:25 +0000 |
commit | b1ba14bf63d7bc60bc9040e0a8020ceb998001b6 (patch) | |
tree | 5bee6aed657fcd07972d98af4ad4aafa6bf17158 /ChangeLog | |
parent | ffbbdf9662270b474b8674fd2ab0f8356e9351a0 (diff) | |
download | ruby-b1ba14bf63d7bc60bc9040e0a8020ceb998001b6.tar.gz |
* lib/forwardable.rb: Convert given accessors to String.
r53381 changed to accept only Symbol or String for accessors, but
there are several rubygems that pass classes (e.g. Array,
Hash, ...) as accessors. Prior r53381, it was accepted because Class#to_s
returns its class name. After r53381 given accessors are checked
with define_method, but it accepts only Symbol or String, otherwise
raises TypeError.
def_delegator Foo, :some_method
This change is to revert unwanted incompatibility. But this behavior
may change in the future.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53511 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ChangeLog')
-rw-r--r-- | ChangeLog | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -1,3 +1,19 @@ +Tue Jan 12 19:52:19 2016 sorah (Shota Fukumori) <her@sorah.jp> + + * lib/forwardable.rb: Convert given accessors to String. + + r53381 changed to accept only Symbol or String for accessors, but + there are several rubygems that pass classes (e.g. Array, + Hash, ...) as accessors. Prior r53381, it was accepted because Class#to_s + returns its class name. After r53381 given accessors are checked + with define_method, but it accepts only Symbol or String, otherwise + raises TypeError. + + def_delegator Foo, :some_method + + This change is to revert unwanted incompatibility. But this behavior + may change in the future. + Mon Jan 12 18:41:41 2016 Martin Duerst <duerst@it.aoyama.ac.jp> * string.c: made a variable name more grammatically correct |