franzejr / best-ruby

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

Add splat operator #12

Closed dansandland closed 9 years ago

dansandland commented 9 years ago

The splat operator is not sufficiently documented. This provides clarity on the variety of uses for the splat and \ operators.

shadefinale commented 9 years ago

+1, I love the splat and especially the double splat operator.

franzejr commented 9 years ago

Thanks @dansandland! Even my_method is not defined, I think your examples are pretty straightforwards and everyone can understand! :+1: