From: Thomas Preymesser Date: 2011-05-19T18:35:21+09:00 Subject: Re: Generating Functions in Ruby --0016e65dc8ec32450804a39db938 Content-Type: text/plain; charset=ISO-8859-1 On 18 May 2011 15:46, Andreas Lundgren wrote: > I'm looking for a construction in Ruby to generate a (big) set of > functions. I need these functions to be class methods and called by > unique names since they are called via an external API. > another way could be the method_missing method. In my gem 'weekday' you can call methods like first_monday(yyyy,mm) , third_tuesday(...), last_sunday(...) and any other combination of a number and weekday. -Thomas -- Thomas Preymesser thopre@gmail.com http://thopre.googlepages.com/ http://thopre.wordpress.com/ --0016e65dc8ec32450804a39db938--