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.41.10 app/formatters/json.rb
cms_scanner-0.0.41.9 app/formatters/json.rb
cms_scanner-0.0.41.8 app/formatters/json.rb
cms_scanner-0.0.41.7 app/formatters/json.rb
cms_scanner-0.0.41.6 app/formatters/json.rb
cms_scanner-0.0.41.5 app/formatters/json.rb
cms_scanner-0.0.41.4 app/formatters/json.rb
cms_scanner-0.0.41.3 app/formatters/json.rb
cms_scanner-0.0.41.2 app/formatters/json.rb
cms_scanner-0.0.41.1 app/formatters/json.rb
cms_scanner-0.0.41.0 app/formatters/json.rb
cms_scanner-0.0.40.3 app/formatters/json.rb
cms_scanner-0.0.40.2 app/formatters/json.rb
cms_scanner-0.0.40.1 app/formatters/json.rb
cms_scanner-0.0.40 app/formatters/json.rb
cms_scanner-0.0.39.4 app/formatters/json.rb
cms_scanner-0.0.39.3 app/formatters/json.rb
cms_scanner-0.0.39.2 app/formatters/json.rb
cms_scanner-0.0.39.1 app/formatters/json.rb
cms_scanner-0.0.39.0 app/formatters/json.rb