B
Bryan Richardson
Hello all,
I'm having trouble aliasing class methods. I've tried the following,
but got errors saying the method being aliased doesn't exist for class
"Class".
Class Foo
class << self
alias bar bla
end
def self.bla
puts "Hello"
end
end
Foo.bar
Any suggestions? Thanks! -- BTR
I'm having trouble aliasing class methods. I've tried the following,
but got errors saying the method being aliased doesn't exist for class
"Class".
Class Foo
class << self
alias bar bla
end
def self.bla
puts "Hello"
end
end
Foo.bar
Any suggestions? Thanks! -- BTR