Should I use ʻalias, should I use ʻalias_method, should I define it with symbol or not?
Use ʻalias and ** not ** symbol.
def existing_method
...
end
alias alias_method existing_method
def self.existing_method
...
end
class << self
alias alias_method existing_method
end
Recommended Posts