lib/inspec/reporters/base.rb in inspec-1.51.15 vs lib/inspec/reporters/base.rb in inspec-1.51.18
- old
+ new
@@ -1,24 +1,24 @@
-module Inspec::Reporters
- class Base
- attr_reader :run_data
-
- def initialize(config)
- @run_data = config[:run_data]
- @output = ''
- end
-
- def output(str, newline = true)
- @output << str
- @output << "\n" if newline
- end
-
- def rendered_output
- @output
- end
-
- # each reporter must implement #render
- def render
- raise NotImplementedError, "#{self.class} must implement a `#render` method to format its output."
- end
- end
-end
+module Inspec::Reporters
+ class Base
+ attr_reader :run_data
+
+ def initialize(config)
+ @run_data = config[:run_data]
+ @output = ''
+ end
+
+ def output(str, newline = true)
+ @output << str
+ @output << "\n" if newline
+ end
+
+ def rendered_output
+ @output
+ end
+
+ # each reporter must implement #render
+ def render
+ raise NotImplementedError, "#{self.class} must implement a `#render` method to format its output."
+ end
+ end
+end