summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-09-28 14:23:24 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-09-28 14:23:24 +0000
commita1c502420b5a9082dea0c6807671efec24b55702 (patch)
treebf1b08cd716266aeeda5c04bc449248ff764e25f /lib
parent67413ba82788aace5c81a89c1eb03a22b3787b79 (diff)
downloadruby-a1c502420b5a9082dea0c6807671efec24b55702.tar.gz
ruby-a1c502420b5a9082dea0c6807671efec24b55702.tar.xz
ruby-a1c502420b5a9082dea0c6807671efec24b55702.zip
* lib/delegate.rb: document update from James Edward Gray II
<james@grayproductions.net>. [ruby-core:06027] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@9329 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/.document1
-rw-r--r--lib/delegate.rb1
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/.document b/lib/.document
index 6b7422ed6..3cb3c859e 100644
--- a/lib/.document
+++ b/lib/.document
@@ -18,6 +18,7 @@ erb.rb
English.rb
fileutils.rb
find.rb
+forwardable.rb
generator.rb
logger.rb
matrix.rb
diff --git a/lib/delegate.rb b/lib/delegate.rb
index 2a0119d08..93c9803a1 100644
--- a/lib/delegate.rb
+++ b/lib/delegate.rb
@@ -195,6 +195,7 @@ end
#
class SimpleDelegator<Delegator
+ # Pass in the _obj_ you would like to delegate method calls to.
def initialize(obj)
super
@_sd_obj = obj