Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Like #alias_method_chain, but awesome

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 LICENSE
Octocat-spinner-32 Manifest
Octocat-spinner-32 README
Octocat-spinner-32 Rakefile
Octocat-spinner-32 override.gemspec
Octocat-spinner-32 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.