class RSpec::Core::Hooks::Hook
def call
def call @block.call end
def initialize(options, &block)
def initialize(options, &block) @options = options raise "no block given for #{self.class::TYPE} hook" unless block @block = block end
def options_apply?(example_or_group)
def options_apply?(example_or_group) !example_or_group || example_or_group.apply?(:all?, options) end
def to_proc
def to_proc @block end