franzejr / best-ruby

Ruby Tricks, Idiomatic Ruby, Refactoring and Best Practices
http://franzejr.github.io/best-ruby/
2.39k stars 219 forks source link

Add Introspecting Block Parameters #49

Closed franzejr closed 8 years ago

franzejr commented 8 years ago

Some contributor want to review this? It's considered an idiomatic Ruby code ? Seeing the definition we have:

"You can write a Ruby code, but it can look like a Java code for example. Here you can find some tips to write a more natural and take advantage of Ruby."

With this, I think, we are taking advantage of Ruby and writing something more clean/idiomatic code, even though it's not in Ruby core .

MarcosX commented 8 years ago

This looks more like a trick to me. But i like the content, no matter where it goes :+1:

franzejr commented 8 years ago

Yeah..I was trying to think if it's considered a trick or idiomatic ruby.

filipebarcos commented 8 years ago

I'd definitely say trick. I probably wouldn't use this in a real life project, but it's definitely interesting thing to know about :+1:

franzejr commented 8 years ago

I agree! Changed. @filipebarcos @MarcosX

filipebarcos commented 8 years ago

perfect! :+1: