Class: RspecLogFormatter::AnalyzerFormatter::Factory

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

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Factory

Returns a new instance of Factory.


9
10
11
# File 'lib/rspec_log_formatter/analyzer_formatter.rb', line 9

def initialize(options={})
  @options = options
end

Instance Method Details

#build(output = $stdout) ⇒ Object


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

def build(output=$stdout)
  RspecLogFormatter::AnalyzerFormatter.new(output, {
    builds_to_analyze: nil,
    max_reruns: nil
  }.merge(@options))
end