Posts Tagged ‘syntax’

Ruby and parenthesis

Wednesday, April 11th, 2007

Do you prefer

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

or

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