From: Ralf Mueller Date: 2009-09-18T19:28:11+09:00 Subject: Re: dynamically created functions? Lin Wj wrote: > def self.developer_options(*args) > fetch_options({'area'=>'developers','index' => args.first}) > end > > def self.priority_options(*args) > fetch_options({'area'=>'priority','index' => args.first}) > end > > def self.status_options(*args) > fetch_options({'area'=>'status','index' => args.first}) > end > > is there anyway to dynamically create methods with a specific name ? > > ie: create methods which are > > def self.??????_options(*args) > fetch_options({'area'=>'?????','index' => args.first}) > end > see http://www.ruby-doc.org/core-1.8.7/classes/Module.html#M000396 regards ralf