Class: CodeSage::ReportFormatter
- Inherits:
-
Object
- Object
- CodeSage::ReportFormatter
- Defined in:
- lib/code_sage/report_formatter.rb
Instance Attribute Summary collapse
-
#format(report) ⇒ Object
readonly
Returns the value of attribute format.
Instance Method Summary collapse
-
#initialize(format = 'console') ⇒ ReportFormatter
constructor
A new instance of ReportFormatter.
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 |