Class: SpecRunQueue::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#rspec_binObject

Returns the value of attribute rspec_bin.



6
7
8
# File 'lib/spec_run_queue.rb', line 6

def rspec_bin
  @rspec_bin
end

#rspec_formatObject

Returns the value of attribute rspec_format.



6
7
8
# File 'lib/spec_run_queue.rb', line 6

def rspec_format
  @rspec_format
end

Instance Method Details

#add_notifier(runner_symbol, options = {}) ⇒ Object



8
9
10
11
# File 'lib/spec_run_queue.rb', line 8

def add_notifier(runner_symbol, options = {})
  klass = SpecRunQueue::Notifier.send(:const_get, runner_symbol.to_s.capitalize)
  SpecRunQueue.runner.add_notifier klass.new(options)
end

#to_hObject



13
14
15
16
17
18
# File 'lib/spec_run_queue.rb', line 13

def to_h
  h = {}
  h[:rspec_bin]    = rspec_bin if rspec_bin
  h[:rspec_format] = rspec_format if rspec_format
  h
end