Class: Tamashii::Hook
- Inherits:
-
Object
- Object
- Tamashii::Hook
- Includes:
- Singleton, Hookable
- Defined in:
- lib/tamashii/hook.rb
Overview
:nodoc:
Constant Summary
Constants included from Hookable
Class Method Summary collapse
- .method_missing(name, *args, &block) ⇒ Object
- .respond_to_missing?(name, _include_private = false) ⇒ Boolean
Methods included from Hookable
#after, #before, #hook, #run, #run_after, #run_before
Class Method Details
.method_missing(name, *args, &block) ⇒ Object
14 15 16 17 |
# File 'lib/tamashii/hook.rb', line 14 def method_missing(name, *args, &block) return super unless respond_to_missing?(name) instance.send(name, *args, &block) end |
.respond_to_missing?(name, _include_private = false) ⇒ Boolean
10 11 12 |
# File 'lib/tamashii/hook.rb', line 10 def respond_to_missing?(name, _include_private = false) instance.respond_to?(name) end |