Class: CodeSage::ReportFormatter

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(format = 'console') ⇒ ReportFormatter

Returns a new instance of ReportFormatter.



8
9
10
# File 'lib/code_sage/report_formatter.rb', line 8

def initialize(format = 'console')
  @format = format.to_s.downcase
end

Instance Attribute Details

#format(report) ⇒ Object (readonly)

Returns the value of attribute format.



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

def format
  @format
end