Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Shell delegate methods should pass their block #228

Merged
merged 1 commit into from

2 participants

@burtlo

While experimenting with adding blocks to various shell commands I noticed that no block-love was happening unless I explicitly called shell.file_collision.

@eventualbuddha eventualbuddha merged commit 3120219 into from
@eventualbuddha
Collaborator

Thanks!

@burtlo

Welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 29, 2012
  1. @burtlo
This page is out of date. Refresh to see the latest.
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/thor/shell.rb
View
4 lib/thor/shell.rb
@@ -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
Something went wrong with that request. Please try again.