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.35 app/formatters/json.rb
cms_scanner-0.0.34 app/formatters/json.rb
cms_scanner-0.0.33 app/formatters/json.rb
cms_scanner-0.0.32 app/formatters/json.rb
cms_scanner-0.0.31 app/formatters/json.rb
cms_scanner-0.0.30 app/formatters/json.rb
cms_scanner-0.0.29 app/formatters/json.rb
cms_scanner-0.0.28 app/formatters/json.rb
cms_scanner-0.0.27 app/formatters/json.rb
cms_scanner-0.0.26 app/formatters/json.rb
cms_scanner-0.0.25 app/formatters/json.rb
cms_scanner-0.0.24 app/formatters/json.rb
cms_scanner-0.0.23 app/formatters/json.rb
cms_scanner-0.0.22 app/formatters/json.rb
cms_scanner-0.0.21 app/formatters/json.rb
cms_scanner-0.0.20 app/formatters/json.rb
cms_scanner-0.0.19 app/formatters/json.rb
cms_scanner-0.0.18 app/formatters/json.rb
cms_scanner-0.0.17 app/formatters/json.rb
cms_scanner-0.0.16 app/formatters/json.rb