From: David Tillman Date: 2001-08-08T03:02:55+09:00 Subject: [ruby-talk:19305] Re: Speaking of the ternary operator.... >>>> David Alan Black > You could take advantage of your ability to manipulate the default > value of a hash: > h = args[1] # save some typing :-) > h.default = false # or just leave as nil, if that works > > @border = h[H_border] || 0 > @align = h[H_align] > @spacing = h[H_spacing] > # ... > @format = h[H_format] || [] Doh! Yes, that will work very well. It looks like I should spend less time coding and more reading the docs - you know, 3 weeks in the lab can save 3 hours in the library... -Dave -- David Tillman | System Administrator How absolute the knave is! We must speak by the card, or equivocation will undo us.