Ruby and parenthesis
Do you prefer
p = Pathaname.new('.').realpath
or
p = (Pathname.new '.').realpath?
Tags: ruby, syntax
This entry was posted
on Wednesday, April 11th, 2007 at 6:06 pm and is filed under General.
You can follow any responses to this entry through the RSS 2.0 feed.
You can skip to the end and leave a response. Pinging is currently not allowed.
April 11th, 2007 at 10:09 pm
I definitely prefer
p = Pathaname.new(’.').realpath