Class: Guard::RSpec::Inspectors::Factory

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

Class Method Summary collapse

Class Method Details

.create(options = {}) ⇒ Object



10
11
12
13
14
15
16
# File 'lib/guard/rspec/inspectors/factory.rb', line 10

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