# File lib/rspec/core/hooks.rb, line 266 def before(*args, &block) scope, options = scope_and_options_from(*args) hooks[:before][scope] << block.extend(BeforeHookExtension).with(options) end