lib/licensed/reporters/reporter.rb
# Returns the data from the report as a hash
Returns the data from the report as a hash
Returns the data from the report as a hash
def to_h
          output = {}
          output["name"] = name unless name.to_s.empty?
          output["errors"] = errors.dup if errors.any?
          output["warnings"] = warnings.dup if warnings.any?
          output.merge(super)
        end
def to_h output = { } output [ "name" ] = name unless name . to_s . empty? output [ "errors" ] = errors . dup if errors . any? output [ "warnings" ] = warnings . dup if warnings . any? output . merge ( super ) end
Returns the data from the report as a hash
Returns the data from the report as a hash
# add name, errors and warnings if they have real data # merge the hash data from the report.  command-specified data always # overwrites local data