Thanks. This worked perfectly. On May 3, 6:00 pm, Jeremy Evans <[email protected]> wrote: > On May 3, 5:49 pm, Hiten <[email protected]> wrote: > > > Hi, > > > I can successfully use def_dataset_method to create some very useful > > dataset methods. I would like to make a dataset_method that takes an > > argument. For instance, I'm looking to create this: > > > Model.filter(:name => test).set_comment('this is a comment') > > > Is there a way to set a dataset_method with an argument? > > Have the block take an argument: > > Model.def_dataset_method(:set_comment){|comment| ...} > > Jeremy > > -- > You received this message because you are subscribed to the Google Groups > "sequel-talk" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group > athttp://groups.google.com/group/sequel-talk?hl=en.
-- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/sequel-talk?hl=en.
