Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Andand and Anaphora should play nicely together #9

Closed
raganwald opened this issue Dec 9, 2009 · 2 comments
Closed

Andand and Anaphora should play nicely together #9

raganwald opened this issue Dec 9, 2009 · 2 comments

Comments

@raganwald
Copy link
Collaborator

expression().andand { do_something_with(it) }
@raganwald
Copy link
Collaborator Author

Compare:

Secret.find_by_secret(params[:secret]).andand do |its|
  login_as(its.user)
  clazz_name = its.target.class.name
  redirect_to :controller => eval("#{clazz_name}Controller")
end

to:

Secret.find_by_secret(params[:secret]).andand do
  login_as(its.user)
  clazz_name = its.target.class.name
  redirect_to :controller => eval("#{clazz_name}Controller")
end

@raganwald
Copy link
Collaborator Author

closed by c3ca7fc

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant