Sha256: 90a91fe54f2cd72571abd23be7e95b32a0a8fdad898cae999f911cac8df5bdc2

Contents?: true

Size: 227 Bytes

Versions: 74

Compression:

Stored size: 227 Bytes

Contents

module CMSScanner
  module Formatter
    # JSON Formatter
    class Json < Base
      include Buffer

      def beautify
        puts JSON.pretty_generate(JSON.parse("{#{buffer.chomp.chomp(',')}}"))
      end
    end
  end
end

Version data entries

74 entries across 74 versions & 1 rubygems

Version Path
cms_scanner-0.0.38.4 app/formatters/json.rb
cms_scanner-0.0.38.3 app/formatters/json.rb
cms_scanner-0.0.38.2 app/formatters/json.rb
cms_scanner-0.0.38.1 app/formatters/json.rb
cms_scanner-0.0.38.0 app/formatters/json.rb
cms_scanner-0.0.37.12 app/formatters/json.rb
cms_scanner-0.0.37.11 app/formatters/json.rb
cms_scanner-0.0.37.10 app/formatters/json.rb
cms_scanner-0.0.37.9 app/formatters/json.rb
cms_scanner-0.0.37.8 app/formatters/json.rb
cms_scanner-0.0.37.7 app/formatters/json.rb
cms_scanner-0.0.37.6 app/formatters/json.rb
cms_scanner-0.0.37.5 app/formatters/json.rb
cms_scanner-0.0.37.4 app/formatters/json.rb
cms_scanner-0.0.37.3 app/formatters/json.rb
cms_scanner-0.0.37.2 app/formatters/json.rb
cms_scanner-0.0.37.1 app/formatters/json.rb
cms_scanner-0.0.37 app/formatters/json.rb
cms_scanner-0.0.36 app/formatters/json.rb
cms_scanner-0.0.35.1 app/formatters/json.rb