method

execute_hook

Importance_0
Ruby on Rails latest stable (v7.1.3.2) - 0 notes - Class: LazyLoadHooks
execute_hook(name, base, options, block) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activesupport/lib/active_support/lazy_load_hooks.rb, line 91
      def execute_hook(name, base, options, block)
        with_execution_control(name, block, options[:run_once]) do
          if options[:yield]
            block.call(base)
          else
            if base.is_a?(Module)
              base.class_eval(&block)
            else
              base.instance_eval(&block)
            end
          end
        end
      end
Register or log in to add new notes.