mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* lib/delegate.rb (SimpleDelegator::dup): wrong number of
arguments. * lib/delegate.rb (DelegateClass::dup): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
765c6a80e6
commit
7eaf299bf2
2 changed files with 15 additions and 8 deletions
|
@ -1,3 +1,10 @@
|
|||
Wed Nov 10 22:49:01 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
|
||||
|
||||
* lib/delegate.rb (SimpleDelegator::dup): wrong number of
|
||||
arguments.
|
||||
|
||||
* lib/delegate.rb (DelegateClass::dup): ditto.
|
||||
|
||||
Wed Nov 10 19:47:55 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* dir.c (glob_helper): path is a string object now.
|
||||
|
|
|
@ -76,13 +76,13 @@ class SimpleDelegator<Delegator
|
|||
@_sd_obj = obj
|
||||
end
|
||||
|
||||
def clone(obj)
|
||||
def clone
|
||||
super
|
||||
__setobj__(obj.__getobj__.clone)
|
||||
__setobj__(__getobj__.clone)
|
||||
end
|
||||
def dup(obj)
|
||||
def dup
|
||||
super
|
||||
__setobj__(obj.__getobj__.dup)
|
||||
__setobj__(__getobj__.dup)
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -112,13 +112,13 @@ def DelegateClass(superclass)
|
|||
def __setobj__(obj)
|
||||
@_dc_obj = obj
|
||||
end
|
||||
def clone(obj)
|
||||
def clone
|
||||
super
|
||||
__setobj__(obj.__getobj__.clone)
|
||||
__setobj__(__getobj__.clone)
|
||||
end
|
||||
def dup(obj)
|
||||
def dup
|
||||
super
|
||||
__setobj__(obj.__getobj__.dup)
|
||||
__setobj__(__getobj__.dup)
|
||||
end
|
||||
}
|
||||
for method in methods
|
||||
|
|
Loading…
Reference in a new issue