Unless I'm very mistaken, aliasing a definition in a module isn't quite as easy as the same in a class. Can anyone tell me what you need to do to alias in a module?
Thanks in advance
Quote from: shdwlink1993 on August 13, 2009, 05:34:00 pm
Unless I'm very mistaken, aliasing a definition in a module isn't quite as easy as the same in a class. Can anyone tell me what you need to do to alias in a module?
Thanks in advance
class << self
alias :newmethod :oldmethod
end
OK. Thanks very much, Longfellow. Cheerio.