Class: RSpec::Core::Hooks::HookCollection
- Inherits:
-
Array
- Object
- Array
- RSpec::Core::Hooks::HookCollection
show all
- Defined in:
- lib/rspec/core/hooks.rb
Instance Method Summary
collapse
Instance Method Details
#find_hooks_for(example_or_group) ⇒ Object
53
54
55
|
# File 'lib/rspec/core/hooks.rb', line 53
def find_hooks_for(example_or_group)
self.class.new(select {|hook| hook.options_apply?(example_or_group)})
end
|
#without_hooks_for(example_or_group) ⇒ Object
57
58
59
|
# File 'lib/rspec/core/hooks.rb', line 57
def without_hooks_for(example_or_group)
self.class.new(reject {|hook| hook.options_apply?(example_or_group)})
end
|