Class: Dawn::Reporter
- Inherits:
-
Object
- Object
- Dawn::Reporter
- Defined in:
- lib/dawn/reporter.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Reporter
constructor
A new instance of Reporter.
- #report ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Reporter
Returns a new instance of Reporter.
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/dawn/reporter.rb', line 6 def initialize(={}) @engine = nil @ret = false @filename = [:filename] @ret = [:apply_all_code] unless [:apply_all_code].nil? @format = [:format] unless [:format].nil? @engine = [:engine] unless [:engine].nil? @format = :tabular unless is_valid_format?(@format) end |
Instance Method Details
#report ⇒ Object
18 19 20 21 22 23 |
# File 'lib/dawn/reporter.rb', line 18 def report ascii_tabular_report if @format == :tabular json_report if @format == :json ascii_plain_report if @format == :console html_report if @format == :html end |