class_to_instance_method_creator.rb

lib/alias/creators/class_to_instance_method_creator.rb
Last Update: Tue Jul 07 04:40:29 -0400 2009

Creates instance methods which call class methods. These are delegations rather than aliases. Expects a hash of classes/modules of the instance method mapped to a hash of the class methods and the instance method names. For example, the hash {“MyDate”=>{‘Date.today’=>’t’}} would create a MyDate.t instance method which directly calls Date.today.