T
Trans
I don't understand why something like this isn't in core.
class Module
def alias_accessor(new, old)
alias_method(new, old)
alias_method("#{new}=", "#{old}=")
end
end
Is there some other way to handle this that I'm missing?
class Module
def alias_accessor(new, old)
alias_method(new, old)
alias_method("#{new}=", "#{old}=")
end
end
Is there some other way to handle this that I'm missing?