Module: Rucola::InitializeHooks::ClassMethods
- Defined in:
- lib/rucola/rucola_support/initialize_hooks.rb
Instance Method Summary collapse
-
#_rucola_register_initialize_hook(hook) ⇒ Object
Adds the given proc to the initialize hooks queue, which will be ran after object initialization.
Instance Method Details
#_rucola_register_initialize_hook(hook) ⇒ Object
Adds the given proc to the initialize hooks queue, which will be ran after object initialization.
6 7 8 |
# File 'lib/rucola/rucola_support/initialize_hooks.rb', line 6 def _rucola_register_initialize_hook(hook) (@_rucola_initialize_hooks ||= []).push hook end |