Class: CommandResult

Inherits:
Object
  • Object
show all
Defined in:
lib/atk/console.rb

Defined Under Namespace

Classes: Error

Instance Method Summary collapse

Constructor Details

#initialize(io_object, process_object) ⇒ CommandResult

Returns a new instance of CommandResult.



16
17
18
19
# File 'lib/atk/console.rb', line 16

def initialize(io_object, process_object)
    @io_object = io_object
    @process_object = process_object
end

Instance Method Details

#exitcodeObject



28
29
30
31
32
# File 'lib/atk/console.rb', line 28

def exitcode
    if !@io_object
        return Errno::ENOENT.new
    end
end

#readObject



21
22
23
24
25
26
# File 'lib/atk/console.rb', line 21

def read
    if @read == nil && @io_object
        @read = @io_object.read
    end
    return @read
end