class RSpec::Core::Hooks::HookCollections

def hooks_for(position, scope)

Experimental RBS support (using type sampling data from the type_fusion project).

def hooks_for: (Symbol position, Symbol scope) -> nil

This signature was generated using 5 samples from 1 application.

def hooks_for(position, scope)
  if position == :before
    scope == :example ? @before_example_hooks : @before_context_hooks
  elsif position == :after
    scope == :example ? @after_example_hooks : @after_context_hooks
  else # around
    @around_example_hooks
  end || yield
end