Module: Hai::ActionMods
- Defined in:
- lib/hai/action_mods.rb
Defined Under Namespace
Modules: ClassMethods
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.included(base) ⇒ Object
3 4 5 |
# File 'lib/hai/action_mods.rb', line 3 def self.included(base) base.extend(ClassMethods) end |
Instance Method Details
#run_action_modification(action, context) ⇒ Object
7 8 9 10 11 |
# File 'lib/hai/action_mods.rb', line 7 def run_action_modification(action, context) return unless (action_mod = self.class.action_mods[action]) action_mod.call(self, context) end |