Class: Hospital::Formatter::Pre
- Inherits:
-
Base
- Object
- Base
- Hospital::Formatter::Pre
show all
- Defined in:
- lib/hospital/formatter/pre.rb
Instance Method Summary
collapse
Methods inherited from Base
#initialize, #result
Instance Method Details
12
13
14
|
# File 'lib/hospital/formatter/pre.rb', line 12
def text
@buffer << "\n\n## Checking #{text}"
end
|
#put_diagnosis_result(text) ⇒ Object
29
30
31
|
# File 'lib/hospital/formatter/pre.rb', line 29
def put_diagnosis_result text
@buffer << "\n#{text}"
end
|
#put_diagnosis_skipped(text) ⇒ Object
16
17
18
|
# File 'lib/hospital/formatter/pre.rb', line 16
def put_diagnosis_skipped text
@buffer << "\n\n## Skipped #{text}"
end
|
8
9
10
|
# File 'lib/hospital/formatter/pre.rb', line 8
def text
@buffer << "\n\n### #{text}"
end
|
#put_summary(errors_count, warnings_count) ⇒ Object
20
21
22
23
24
25
26
27
|
# File 'lib/hospital/formatter/pre.rb', line 20
def put_summary errors_count, warnings_count
@buffer << " \\n\\n\n #### Summary:\n Errors: \#{errors_count}\n Warnings: \#{warnings_count}\n END\nend\n"
|