Class: SpecRunQueue::Configuration
- Inherits:
-
Object
- Object
- SpecRunQueue::Configuration
- Defined in:
- lib/spec_run_queue.rb
Instance Attribute Summary collapse
-
#rspec_bin ⇒ Object
Returns the value of attribute rspec_bin.
-
#rspec_format ⇒ Object
Returns the value of attribute rspec_format.
Instance Method Summary collapse
Instance Attribute Details
#rspec_bin ⇒ Object
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_format ⇒ Object
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, = {}) klass = SpecRunQueue::Notifier.send(:const_get, runner_symbol.to_s.capitalize) SpecRunQueue.runner.add_notifier klass.new() end |
#to_h ⇒ Object
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 |