class RSpec::Core::Hooks::HookCollections
def process(host, globals, position, scope)
def process(host, globals, position, scope) globals[position][scope].each do |hook| next unless scope == :example || hook.options_apply?(host) next if host.parent_groups.any? { |a| a.hooks[position][scope].include?(hook) } self[position][scope] << hook end end