Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Like #alias_method_chain, but awesome
Ruby
Branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib
test
LICENSE
Manifest
README
Rakefile
override.gemspec
specs.watchr

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.