Summary

Allows using the 'super' keyword with methods previously defined in reopened classes.
Simple and elegant alternative to Rails' #alias_method_chain for redifining methods while keeping access to the previous definition.

Install

gem install mynyml-override --source http://gemcutter.org

Examples

require 'override'

class Post
def text
  @text.strip
end
end

class Post
override :text
def text
  super.reverse
end
end