Sha256: 288d22b873c45522dc658cea55e6b7d5af4c9889ed8a8ceee34e63484346d771
Contents?: true
Size: 483 Bytes
Versions: 1
Compression:
Stored size: 483 Bytes
Contents
module Ddr module FileTools class Result attr_reader :output, :error, :status def initialize(out, err, s) @output, @error, @status = out, err, s end def inspect "#<Ddr::FileTools::Result #{success? ? 'SUCCESS' : 'ERROR'}>" end def to_s output end def read output end def success? status.success? end def error? !success? end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ddr-filetools-0.4.0 | lib/ddr/filetools/result.rb |