Class: Alias::Creators::ClassToInstanceMethodCreator

Inherits:
Alias::Creator show all
Defined in:
lib/alias/creators/class_to_instance_method_creator.rb

Overview

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“MyDate”=>{‘Date.today’=>‘t’} would create a MyDate.t instance method which directly calls Date.today.

Instance Attribute Summary

Attributes inherited from Alias::Creator

#aliases, #force, #verbose

Method Summary

Methods inherited from Alias::Creator

class_or_module, #create, creators, #delete_invalid_aliases, generate, generates_aliases, inherited, #initialize, map, maps_config, valid, validators

Constructor Details

This class inherits a constructor from Alias::Creator