lib/docparser/output/multi_output.rb in docparser-0.2.3 vs lib/docparser/output/multi_output.rb in docparser-0.3.0
- old
+ new
@@ -1,5 +1,7 @@
+# frozen_string_literal: true
+
module DocParser
# The MultiOutput output combines multiple outputs.
# It creates a CSV, HTML, YAML and XLSX Output file
# @see CSVOutput
# @see HTMLOutput
@@ -7,10 +9,10 @@
# @see XLSXOutput
# @see Output
class MultiOutput < Output
# All the possible outputs
OUTPUT_TYPES = { csv: CSVOutput, html: HTMLOutput, yml: YAMLOutput,
- xlsx: XLSXOutput, json: JSONOutput }
+ xlsx: XLSXOutput, json: JSONOutput }.freeze
# @!visibility private
def initialize(**options)
@outputs = []
OUTPUT_TYPES.each do |type, output|