Permalink
Browse files

Shell delegate methods should pass their block

  • Loading branch information...
1 parent d72999a commit b62ee1d2d9739bd856676371cbac258d93431d00 @burtlo burtlo committed Apr 29, 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 b62ee1d

Please sign in to comment.