Permalink
Browse files

Merge pull request #228 from burtlo/delegate-methods-with-blocks

Shell delegate methods should pass their block
  • Loading branch information...
2 parents 6ccb1fe + b62ee1d commit 31202197f9bf1338e4161a3012db3d2d7db81139 @eventualbuddha eventualbuddha committed May 4, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/thor/shell.rb
View
@@ -62,8 +62,8 @@ def shell=(shell)
# Common methods that are delegated to the shell.
SHELL_DELEGATED_METHODS.each do |method|
module_eval <<-METHOD, __FILE__, __LINE__
- def #{method}(*args)
- shell.#{method}(*args)
+ def #{method}(*args,&block)
+ shell.#{method}(*args,&block)
end
METHOD
end

0 comments on commit 3120219

Please sign in to comment.