Module: RoHelpers::Hook
- Defined in:
- lib/ro_helpers/hook.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.method_added(meth) ⇒ Object
5 6 7 8 |
# File 'lib/ro_helpers/hook.rb', line 5 def method_added(meth) meths << meth super end |
.meths ⇒ Object
10 11 12 |
# File 'lib/ro_helpers/hook.rb', line 10 def meths @meths ||= [] end |
Instance Method Details
#included?(base) ⇒ Boolean
15 16 17 |
# File 'lib/ro_helpers/hook.rb', line 15 def included?(base) base.extend(ClassMethods) end |