Sha256: c8a0399bf0cadcfa2de235f4accfad7764bab062e6f790f67ed72bfffca31e36

Contents?: true

Size: 253 Bytes

Versions: 11

Compression:

Stored size: 253 Bytes

Contents

require 'pp'
require 'stringio'

module CutePrint
  module Format
    # @api private
    class PrettyPrint

      def format(width, value)
        out = StringIO.new
        PP.pp(value, out, width)
        out.string.lines
      end

    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
cute_print-1.4.0 lib/cute_print/format/pretty_print.rb
cute_print-1.3.0 lib/cute_print/format/pretty_print.rb
cute_print-1.2.0 lib/cute_print/format/pretty_print.rb
cute_print-1.1.4 lib/cute_print/format/pretty_print.rb
cute_print-1.1.3 lib/cute_print/format/pretty_print.rb
cute_print-1.1.2 lib/cute_print/format/pretty_print.rb
cute_print-1.1.1 lib/cute_print/format/pretty_print.rb
cute_print-1.1.0 lib/cute_print/format/pretty_print.rb
cute_print-1.0.1 lib/cute_print/format/pretty_print.rb
cute_print-1.0.0 lib/cute_print/format/pretty_print.rb
cute_print-0.4.0 lib/cute_print/format/pretty_print.rb