From: Daniel Berger Date: 2008-10-28T11:38:10+09:00 Subject: Re: Named arguments gem On Oct 27, 6:09 pm, Macario Ortega wrote: > 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' Yes, of course. > Please add this line at the top: > Object.send( :include, NamedArguments ) This works fine. > If you get this error: > uninitialized constant NamedArguments > > named_arguments has not been required > > Please let me know how it goes. It doesn't work. Regards, Dan