Class Alias::Creators::ClassToInstanceMethodCreator

  1. lib/alias/creators/class_to_instance_method_creator.rb
Parent: Alias::Creator

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.