Sha256: 7597478f8bfd5a64454ddfcae71fc3928c7c1958b530af2075c07c7d0eedb5d7

Contents?: true

Size: 325 Bytes

Versions: 6

Compression:

Stored size: 325 Bytes

Contents

require "awesome_print"

module JazzFingers
  class Print
    class << self
      def config
        lambda do |_output, value, pry_object|
          return if Hirb::View.view_or_page_output(value)
          pretty = value.ai(indent: 2)
          pry_object.pager.page("=> #{pretty}")
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
jazz_fingers-3.0.0 lib/jazz_fingers/print.rb
jazz_fingers-2.0.2 lib/jazz_fingers/print.rb
jazz_fingers-2.0.2.rc1 lib/jazz_fingers/print.rb
jazz_fingers-2.0.1 lib/jazz_fingers/print.rb
jazz_fingers-2.0.1.rc1 lib/jazz_fingers/print.rb
jazz_fingers-2.0.0 lib/jazz_fingers/print.rb