Module: TapOut::Reporters

Defined in:
lib/tapout/reporters/abstract.rb,
lib/tapout/reporters/tap.rb,
lib/tapout/reporters/html.rb,
lib/tapout/reporters/outline.rb,
lib/tapout/reporters/breakdown.rb,
lib/tapout/reporters/dotprogress.rb,
lib/tapout/reporters/progressbar.rb

Overview

Namespace for Report Formats.

Defined Under Namespace

Classes: Abstract, Breakdown, Dotprogress, Html, Outline, Progressbar, Tap

Class Method Summary collapse

Class Method Details

.factory(name) ⇒ Object

Returns a reporter class given it’s name or a unique abbreviation of it.



15
16
17
18
# File 'lib/tapout/reporters/abstract.rb', line 15

def self.factory(name)
  list = index.keys.abbrev
  index[list[name]]
end

.indexObject

Returns a Hash of name to reporter class.



10
11
12
# File 'lib/tapout/reporters/abstract.rb', line 10

def self.index
  @index ||= {}
end