class GemFootprintAnalyzer::Formatters::Json

A formatter class outputting bare JSON. Useful for integrating with other tools.

Public Class Methods

new(*) click to toggle source

Initializer conforms to formatters interface

# File lib/gem_footprint_analyzer/formatters/json.rb, line 7
def initialize(*); end

Public Instance Methods

format_list(requires_list) click to toggle source

@return [String] A JSON form of the requires_list array, last entry is the cumulated result.

# File lib/gem_footprint_analyzer/formatters/json.rb, line 10
def format_list(requires_list)
  require 'json'

  JSON.dump(requires_list)
end