L
Lin Wj
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
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