-
then
: Passesself
to the given callable and passes along its return value. This is handy combined with&.
, e.g.:s&.then(&Time.method(:parse))
You will get a
nil
ifs
isnil
, otherwise you'll getTime.parse(s)
. -
o.()
: This is a synonym foro.call()
. I don't know why you'd prefer the terse way but I worked with someone once who loved to write this everywhere.