Class: RSpec::Core::Hooks::BeforeHook
- Defined in:
- lib/rspec/core/hooks.rb
Instance Attribute Summary
Attributes inherited from Hook
Instance Method Summary collapse
Methods inherited from Hook
#call, #initialize, #options_apply?, #to_proc
Constructor Details
This class inherits a constructor from RSpec::Core::Hooks::Hook
Instance Method Details
#run_in(example_group_instance) ⇒ Object
27 28 29 30 31 32 33 |
# File 'lib/rspec/core/hooks.rb', line 27 def run_in(example_group_instance) if example_group_instance example_group_instance.instance_eval(&self) else call end end |