Class: SuppressionWriter
- Inherits:
-
Object
- Object
- SuppressionWriter
- Defined in:
- lib/suppression_writer.rb
Overview
Writes the suppression xml to a given file name
Instance Method Summary collapse
-
#initialize(file_name, suppression_xml) ⇒ SuppressionWriter
constructor
A new instance of SuppressionWriter.
- #write ⇒ Object
Constructor Details
#initialize(file_name, suppression_xml) ⇒ SuppressionWriter
Returns a new instance of SuppressionWriter.
5 6 7 8 |
# File 'lib/suppression_writer.rb', line 5 def initialize(file_name, suppression_xml) @file_name = file_name @suppression_xml = suppression_xml end |
Instance Method Details
#write ⇒ Object
10 11 12 |
# File 'lib/suppression_writer.rb', line 10 def write File.write(@file_name, @suppression_xml) end |