On Sun, Aug 15, 2010 at 00:56, David Masover <ninja / slaphack.com> wrote: > On Saturday, August 14, 2010 05:50:22 pm Pablo Torres N. wrote: >> Just a note: while you can omit parens in method definitions, most >> code does only if the method takes no arguments, if it does, leave the >> parens there. > > Why? > > I find it more readable without parens, but with syntax highlighting, mostly > because that's how I call methods. > > Just a convention, I guess precisely so you can easily tell method definitions and method invocations apart. Consider: def say_hi(tittle, name) puts "Hi, #{tittle} #{name}" end tittle = "Dr." name = "Cham" some_obj.instance_eval do def say_hi tittle, name puts "Howdy, #{tittle} #{name}" end end A bit ambiguous.