diff options
Diffstat (limited to 'doc/syntax/methods.rdoc')
-rw-r--r-- | doc/syntax/methods.rdoc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/syntax/methods.rdoc b/doc/syntax/methods.rdoc index d7610f161d..648843e753 100644 --- a/doc/syntax/methods.rdoc +++ b/doc/syntax/methods.rdoc @@ -383,7 +383,7 @@ arguments must appear before any keyword arguments. The block argument is indicated by <code>&</code> and must come last: def my_method(&my_block) - my_method.call(self) + my_block.call(self) end Most frequently the block argument is used to pass a block to another method: |