Like #alias_method_chain, but awesome
License
mynyml/override
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
=== 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
About
Like #alias_method_chain, but awesome
Resources
License
Stars
Watchers
Forks
Packages 0
No packages published