class Inspec::Reporters::Base
Attributes
run_data[R]
Public Class Methods
new(config)
click to toggle source
# File lib/inspec/reporters/base.rb, line 9 def initialize(config) @config = config @run_data = config[:run_data] || {} apply_run_data_filters_to_hash @output = "" end
Public Instance Methods
output(str, newline = true)
click to toggle source
# File lib/inspec/reporters/base.rb, line 17 def output(str, newline = true) @output << str @output << "\n" if newline end
render()
click to toggle source
each reporter must implement render
# File lib/inspec/reporters/base.rb, line 27 def render raise NotImplementedError, "#{self.class} must implement a `#render` method to format its output." end
rendered_output()
click to toggle source
# File lib/inspec/reporters/base.rb, line 22 def rendered_output @output end