Class: Guard::Bdd::StateMachine

Inherits:
Object
  • Object
show all
Defined in:
lib/guard/bdd/state_machine.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ StateMachine

Returns a new instance of StateMachine.



94
95
96
97
98
99
100
101
102
# File 'lib/guard/bdd/state_machine.rb', line 94

def initialize(options)
  @options = options
  @changed_paths = []
  @failed_paths = []

  @rspec_runner = RSpec::Runner.new(@options)

  super()
end

Instance Attribute Details

#changed_paths=(value) ⇒ Object (writeonly)

Sets the attribute changed_paths

Parameters:

  • value

    the value to set the attribute changed_paths to.



8
9
10
# File 'lib/guard/bdd/state_machine.rb', line 8

def changed_paths=(value)
  @changed_paths = value
end

Instance Method Details

#remove(paths) ⇒ Object



104
105
106
# File 'lib/guard/bdd/state_machine.rb', line 104

def remove(paths)
  @failed_paths -= paths
end