Sha256: 031bb8a705fb4762cbd68a7812705e26a938939f71c99111f329229e9ff4c0d3

Contents?: true

Size: 309 Bytes

Versions: 1

Compression:

Stored size: 309 Bytes

Contents

module Process
  class Status
    def to_hash
      { :exited? => exited?, :exitstatus => exitstatus, :pid => pid, 
        :stopped? => stopped?, :stopsig => stopsig, :success? => success?,
        :termsig => termsig, :timed_out? => false }
    end
    def to_json
      to_hash.to_json
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
subprocess-0.1.6 lib/core_ext/process_status.rb