Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Like #alias_method_chain, but awesome
branch: master
Failed to load latest commit information.
lib Initial commit.
test Clean up tests
LICENSE Add license.
Manifest Add specs watchr script
README Fix typo in README
Rakefile Clean up tests
override.gemspec v0.5.2
specs.watchr Add specs watchr script

README

=== Summary

  Allows using the 'super' keyword with methods previously defined in reopened classes.
  Simple and elegant alternative to Rails' #alias_method_chain for redefining 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
Something went wrong with that request. Please try again.