From: Macario Ortega Date: 2008-10-28T09:09:13+09:00 Subject: Re: Named arguments gem Daniel Berger wrote: > On Oct 26, 9:29�pm, Macario Ortega wrote: >> � def another_instance_method( a = :a, b = :b, c = :c) >> � end >> >> http://github.com/maca/namedarguments/tree/master/ >> -- >> Posted viahttp://www.ruby-forum.com/. > > Hm, using your example with named_arguments 0.0.5 I get: > > undefined method `named_args_for' for Example:Class (NoMethodError) > > Regards, > > Dan When you require the gem it adds the method #named_args_for to any object so you can use it while defining a class or later on. Have you required the gem with this line? require 'named_arguments' Please add this line at the top: Object.send( :include, NamedArguments ) If you get this error: uninitialized constant NamedArguments named_arguments has not been required Please let me know how it goes. Macario -- Posted via http://www.ruby-forum.com/.