Can I remove a method alias in Ruby?

Viewed 2329

Suppose I've got a section of Ruby code where I'd like to alias a method (I don't know why; let's just suppose I have a good reason).

class String
    alias_method :contains?, :include?
end

Would it be possible for me, after this section, to remove this alias?

2 Answers
Related