Class: Guard::Test::Inspectors::Factory

Inherits:
Object
  • Object
show all
Defined in:
lib/guard/test/inspectors/factory.rb

Class Method Summary collapse

Class Method Details

.create(options = {}) ⇒ Object



11
12
13
14
15
16
17
18
19
20
# File 'lib/guard/test/inspectors/factory.rb', line 11

def create(options = {})
  case options[:failed_mode]
  when :focus
    FocusedInspector.new(options)
  when :keep
    KeepingInspector.new(options)
  else
    SimpleInspector.new(options)
  end
end