alias_method and class_methods don't mix?
- by Daniel
Greetings,
I've been trying to tinker with a global Cache module, but I can't figure out why this isn't working.
Does anyone have any suggestions?
This is the error produced for the below code:
NameError: undefined method get' for moduleCache'
from (irb):21:in `alias_method'
module Cache
def self.get
puts "original"
end
end
…