From: David Masover Date: 2010-08-15T14:56:08+09:00 Subject: Re: hash-style parameters On Saturday, August 14, 2010 05:50:22 pm Pablo Torres N. wrote: > On Sat, Aug 14, 2010 at 13:58, David Masover wrote: > > So, it should be clear that this is what you want: > > > > def para text, options > > > > There is one catch, though -- you said "unknown number", which could be > > zero, so you need a default value: > > > > def para text, options={} > > 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.