Module: NoBacksies::SingletonMethodAdded
- Defined in:
- lib/no_backsies.rb
Overview
Callback system for #method_added.
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.append_features(base) ⇒ Object
233 234 235 236 |
# File 'lib/no_backsies.rb', line 233 def self.append_features(base) base.extend CallbackMethods base.extend self end |
Instance Method Details
#singleton_method_added(method) ⇒ Object
239 240 241 242 243 244 245 |
# File 'lib/no_backsies.rb', line 239 def singleton_method_added(method) if defined?(super) callback_invoke(:singleton_method_added, method){ super(method) } else callback_invoke(:singleton_method_added, method) end end |