Over a million developers have joined DZone.

Declare A Shorthand Proc In Ruby 1.9

·

welcome = ->{puts 'hi'}
#=> #
welcome.call
#=> hi

I discovered this while reading a tweet from @railshoster [twitter.com]
Topics:

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}