diff options
author | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-30 18:52:30 +0000 |
---|---|---|
committer | zzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-05-30 18:52:30 +0000 |
commit | cfe2cbda54de9b9b64de42dcd091f8e0b2bbdcee (patch) | |
tree | e5c4a9c5eab5b244ededae4ee73e5bb85cf7e52b /lib/delegate.rb | |
parent | e5acaa03136ddd6ee01814112d5fec976d262fa6 (diff) |
* lib/delegate.rb: [DOC] Document raise in Delegator class
Patch by @lucasmazza. [Fixes GH-621]
https://github.com/ruby/ruby/pull/621
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/delegate.rb')
-rw-r--r-- | lib/delegate.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/delegate.rb b/lib/delegate.rb index cdb525844c..be871090a7 100644 --- a/lib/delegate.rb +++ b/lib/delegate.rb @@ -62,6 +62,12 @@ class Delegator < BasicObject end # :startdoc: + ## + # :method: raise + # Use __raise__ if your Delegator does not have a object to delegate the + # raise method call. + # + # # Pass in the _obj_ to delegate method calls to. All methods supported by # _obj_ will be delegated to. |