Class: Tamashii::Hook

Inherits:
Object
  • Object
show all
Includes:
Singleton, Hookable
Defined in:
lib/tamashii/hook.rb

Overview

:nodoc:

Constant Summary

Constants included from Hookable

Tamashii::Hookable::VERSION

Class Method Summary collapse

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

Returns:

  • (Boolean)


10
11
12
# File 'lib/tamashii/hook.rb', line 10

def respond_to_missing?(name, _include_private = false)
  instance.respond_to?(name)
end