Class: SuppressionWriter

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

Overview

Writes the suppression xml to a given file name

Instance Method Summary collapse

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

#writeObject



10
11
12
# File 'lib/suppression_writer.rb', line 10

def write
  File.write(@file_name, @suppression_xml)
end