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

aabb_helpers.rb:19: warning: `&' interpreted as argument prefix #62

Open
ghost opened this issue May 29, 2012 · 0 comments
Open

aabb_helpers.rb:19: warning: `&' interpreted as argument prefix #62

ghost opened this issue May 29, 2012 · 0 comments
Labels

Comments

@ghost
Copy link

ghost commented May 29, 2012

There are several warnings using &

not sure if you want to fix, or keep it. I guess it depends on your style.

The fix would be to change:

@root.each_leaf &blk

to

@root.each_leaf(&blk)

I've seen other ruby guys use the same though, they dont like the ()
so perhaps the real fix is to ask ruby core to change this warning
hehehehe.

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

No branches or pull requests

0 participants