Y
Yuri Leikind
Hello all,
Aliasing an object method is simple:
class QQQ
def aaa
end
alias_methodnew_name_for_aaa, :aaa)
end
How do I alias a singleton method of a Class object (or, as many call it, a class method) ?
class QQQ
def self.aaa
end
end
Aliasing an object method is simple:
class QQQ
def aaa
end
alias_methodnew_name_for_aaa, :aaa)
end
How do I alias a singleton method of a Class object (or, as many call it, a class method) ?
class QQQ
def self.aaa
end
end