Class: Guard::Bdd::StateMachine
- Inherits:
-
Object
- Object
- Guard::Bdd::StateMachine
- Defined in:
- lib/guard/bdd/state_machine.rb
Instance Attribute Summary collapse
-
#changed_paths ⇒ Object
writeonly
Sets the attribute changed_paths.
Instance Method Summary collapse
-
#initialize(options) ⇒ StateMachine
constructor
A new instance of StateMachine.
- #remove(paths) ⇒ Object
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 = @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
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 |