Symbol-to-proc, and the use of `&` to coerce things to procs:

[1,2,3,4,5].select(&:odd?)

Awww yeah.

On Tue, Mar 10, 2009 at 3:39 PM, Torm3nt <[email protected]> wrote:
> We all know ruby can read very similarly to english at times, but also has
> some very curious idioms around. Wanted to see what everyone's favourite
> syntactical options were in ruby. I'll start:
>
> ------------------------------------
> if is_it_good?('apple')
>   return it_is_awesome!
> end
> -----------------------------------
>
> I just love the ability to use punctuation in method names ^_^
>
> Your turn!!
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
or Rails Oceania" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rails-oceania?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to