Class: WatchDoge::Configuration::Hooks
- Inherits:
-
Object
- Object
- WatchDoge::Configuration::Hooks
- Defined in:
- lib/watchdoge/configuration.rb
Overview
hook is array of Proc instances
Instance Attribute Summary collapse
-
#after_regression ⇒ Object
Returns the value of attribute after_regression.
-
#after_scenario ⇒ Object
Returns the value of attribute after_scenario.
-
#around_scenario ⇒ Object
Returns the value of attribute around_scenario.
-
#before_regression ⇒ Object
Returns the value of attribute before_regression.
-
#before_scenario ⇒ Object
Returns the value of attribute before_scenario.
Instance Method Summary collapse
-
#initialize ⇒ Hooks
constructor
A new instance of Hooks.
Constructor Details
#initialize ⇒ Hooks
Returns a new instance of Hooks.
22 23 24 25 26 27 28 |
# File 'lib/watchdoge/configuration.rb', line 22 def initialize @before_regression = [] @after_regression = [] @before_scenario = [] @after_scenario = [] @around_scenario = nil end |
Instance Attribute Details
#after_regression ⇒ Object
Returns the value of attribute after_regression.
17 18 19 |
# File 'lib/watchdoge/configuration.rb', line 17 def after_regression @after_regression end |
#after_scenario ⇒ Object
Returns the value of attribute after_scenario.
19 20 21 |
# File 'lib/watchdoge/configuration.rb', line 19 def after_scenario @after_scenario end |
#around_scenario ⇒ Object
Returns the value of attribute around_scenario.
20 21 22 |
# File 'lib/watchdoge/configuration.rb', line 20 def around_scenario @around_scenario end |
#before_regression ⇒ Object
Returns the value of attribute before_regression.
16 17 18 |
# File 'lib/watchdoge/configuration.rb', line 16 def before_regression @before_regression end |
#before_scenario ⇒ Object
Returns the value of attribute before_scenario.
18 19 20 |
# File 'lib/watchdoge/configuration.rb', line 18 def before_scenario @before_scenario end |