summaryrefslogtreecommitdiff
path: root/lib/delegate.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/delegate.rb')
-rw-r--r--lib/delegate.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/delegate.rb b/lib/delegate.rb
index 6ceaa67d29..cccaea8570 100644
--- a/lib/delegate.rb
+++ b/lib/delegate.rb
@@ -111,6 +111,9 @@ def DelegateClass(superclass)
def __getobj__
@_dc_obj
end
+ def __setobj__(obj)
+ @_dc_obj = obj
+ end
return klass;
end