diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-03 17:30:09 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2003-12-03 17:30:09 +0000 |
commit | 43373faa32b613b227c614671492ed1a571fa901 (patch) | |
tree | e379d57a79fcd940058c53b335f5c17b605c4285 /lib/delegate.rb | |
parent | 0d0c4be9181c0dbd07965ce353d0118312afc04f (diff) | |
download | ruby-43373faa32b613b227c614671492ed1a571fa901.tar.gz ruby-43373faa32b613b227c614671492ed1a571fa901.tar.xz ruby-43373faa32b613b227c614671492ed1a571fa901.zip |
* io.c (argf_read): should not terminate on empty string; wait
until real EOF. [ruby-dev:21969]
* io.c (argf_read): should adjust length to read, when length is
specified and read spans command line argument files.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@5096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/delegate.rb')
-rw-r--r-- | lib/delegate.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/delegate.rb b/lib/delegate.rb index 578859fdc..41d35477e 100644 --- a/lib/delegate.rb +++ b/lib/delegate.rb @@ -46,6 +46,7 @@ class Delegator end end end + alias initialize_methods initialize def __getobj__ raise NotImplementedError, "need to define `__getobj__'" @@ -55,7 +56,7 @@ class Delegator __getobj__ end def marshal_load(obj) - initialize(obj) + initialize_methods(obj) end end |