module Corefines::Module::AliasClassMethod
@!method alias_class_method
(new_name, old_name)
Makes _new_name_ a new copy of the class method _old_name_. @param new_name [Symbol] name of the new class method to create. @param old_name [Symbol] name of the existing class method to alias. @return [self]
Public Instance Methods
alias_class_method(new_name, old_name)
click to toggle source
# File lib/corefines/module.rb, line 15 def alias_class_method(new_name, old_name) singleton_class.__send__(:alias_method, new_name, old_name) self end