Sha256: c29303b015259dcd402be0963f359b763bc7b35488e322ad5ba1781978cbe692
Contents?: true
Size: 340 Bytes
Versions: 3
Compression:
Stored size: 340 Bytes
Contents
class Riddle::CommandResult attr_reader :command, :status, :output attr_accessor :successful def initialize(command, status, output = nil, successful = nil) @command, @status, @output = command, status, output if successful.nil? @successful = (@status == 0) else @successful = successful end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
riddle-2.2.0 | lib/riddle/command_result.rb |
riddle-2.1.0 | lib/riddle/command_result.rb |
riddle-2.0.0 | lib/riddle/command_result.rb |