Intrepid Blog

Ruby and parenthesis

Do you prefer

p = Pathaname.new('.').realpath

or

p = (Pathname.new '.').realpath?

1 comment

Preserved from the WordPress version of this blog. Commenting is closed.

JW

I definitely prefer

p = Pathaname.new(‘.’).realpath