In the following example:
default: -> { Time.now }
What -> ? I am familiar with => , but for the first time I see -> .
->
=>
This is a ruby 1.9-inch durable lambda. For example, see this article since 2008 .
Nutshell:
> foo2 = ->(arg) { arg*2 } > foo2.call "now" => nownow
Note the lack of space between -> and (arg) , which is intentional.
(arg)