Sha256: 403da4a8d1ee26bd2ead3f1baa6fb4c53e6f6a820810a1d4e96dd642d05ec8d3

Contents?: true

Size: 539 Bytes

Versions: 1

Compression:

Stored size: 539 Bytes

Contents

require 'tap/dump'

module Tap
  module Tasks
    module Dump
      
      # :startdoc::manifest inspect and dump an object
      #
      # Dumps objects to a file or IO using object.inspect.  See the default
      # tap dump task for more details.
      #
      #   % tap run -- load/yaml "{key: value}" --: inspect
      #   {"key"=>"value"}
      #
      class Inspect < Tap::Dump
        
        # Dumps the object to io using obj.inspect
        def dump(obj, io)
          io.puts obj.inspect
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tap-tasks-0.1.0 lib/tap/tasks/dump/inspect.rb