method
execute_hook
v5.1.7 -
Show latest stable
- Class:
ActiveSupport::LazyLoadHooks
execute_hook(name, base, options, block)private
No documentation available.
# File activesupport/lib/active_support/lazy_load_hooks.rb, line 64
def execute_hook(name, base, options, block)
with_execution_control(name, block, options[:run_once]) do
if options[:yield]
block.call(base)
else
base.instance_eval(&block)
end
end
end