class RSpec::Core::Hooks::Hook

Attributes

block[R]
options[R]

Public Class Methods

new(block, options) click to toggle source
# File lib/rspec/core/hooks.rb, line 9
def initialize(block, options)
  @block = block
  @options = options
end

Public Instance Methods

options_apply?(example_or_group) click to toggle source
# File lib/rspec/core/hooks.rb, line 14
def options_apply?(example_or_group)
  example_or_group.all_apply?(options)
end