Skip to content

Commit

Permalink
Shell delegate methods should pass their block
Browse files Browse the repository at this point in the history
  • Loading branch information
Franklin Webber committed Apr 29, 2012
1 parent d72999a commit b62ee1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/thor/shell.rb
Expand Up @@ -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
Expand Down

0 comments on commit b62ee1d

Please sign in to comment.