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.15 app/formatters/json.rb
cms_scanner-0.0.14 app/formatters/json.rb
cms_scanner-0.0.13 app/formatters/json.rb
cms_scanner-0.0.12 app/formatters/json.rb
cms_scanner-0.0.11 app/formatters/json.rb
cms_scanner-0.0.10 app/formatters/json.rb
cms_scanner-0.0.9 app/formatters/json.rb
cms_scanner-0.0.8 app/formatters/json.rb
cms_scanner-0.0.7 app/formatters/json.rb
cms_scanner-0.0.6 app/formatters/json.rb
cms_scanner-0.0.5 app/formatters/json.rb
cms_scanner-0.0.4 app/formatters/json.rb
cms_scanner-0.0.3 app/formatters/json.rb
cms_scanner-0.0.2 app/formatters/json.rb