From: ahoward Date: 2002-11-13T19:17:14+09:00 Subject: Re: Keyword arguments? On Tue, 12 Nov 2002, Vis Mike wrote: [snip] > Keyword arguments help with ambiguity. [snip] this is close class Person def initialize args @name = args[:name] @age = args[:age] end end me = Person.new :name => 'ara', :age => 30 note that's a hash, not keywords - but you get the same effect. hope that helps. -a -- ==================================== | Ara Howard | NOAA Forecast Systems Laboratory | Information and Technology Services | Data Systems Group | R/FST 325 Broadway | Boulder, CO 80305-3328 | Email: ahoward@fsl.noaa.gov | Phone: 303-497-7238 | Fax: 303-497-7259 ====================================