Sha256: 2185880bd6b308bf2276480f0e1eef76567b436fd6b9b14124d49b5ce4dc7831
Contents?: true
Size: 868 Bytes
Versions: 1
Compression:
Stored size: 868 Bytes
Contents
# MethodWatcher Provide method\_overriding callback. ## Installation Add this line to your application's Gemfile: gem 'method_watcher' And then execute: $ bundle Or install it yourself as: $ gem install method_watcher ## Usage ```ruby require 'method_watcher' class A include MethodWatcher def foo end def bar end watch_methods :foo, :bar end class B < A def foo end end #you will get a warning: #method A#foo is overridden #you can define you own behavior when method overriding. #in class A: def self.method_overriding method puts "OMG, method #{method} is overridden!!" end ``` ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
method_watcher-0.0.1 | README.md |