Class: WatchDoge::Configuration::Hooks

Inherits:
Object
  • Object
show all
Defined in:
lib/watchdoge/configuration.rb

Overview

hook is array of Proc instances

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeHooks

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_regressionObject

Returns the value of attribute after_regression.



17
18
19
# File 'lib/watchdoge/configuration.rb', line 17

def after_regression
  @after_regression
end

#after_scenarioObject

Returns the value of attribute after_scenario.



19
20
21
# File 'lib/watchdoge/configuration.rb', line 19

def after_scenario
  @after_scenario
end

#around_scenarioObject

Returns the value of attribute around_scenario.



20
21
22
# File 'lib/watchdoge/configuration.rb', line 20

def around_scenario
  @around_scenario
end

#before_regressionObject

Returns the value of attribute before_regression.



16
17
18
# File 'lib/watchdoge/configuration.rb', line 16

def before_regression
  @before_regression
end

#before_scenarioObject

Returns the value of attribute before_scenario.



18
19
20
# File 'lib/watchdoge/configuration.rb', line 18

def before_scenario
  @before_scenario
end