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.



14
15
16
17
# File 'lib/atk/console.rb', line 14

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

Instance Method Details

#exitcodeObject



26
27
28
29
30
# File 'lib/atk/console.rb', line 26

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

#readObject



19
20
21
22
23
24
# File 'lib/atk/console.rb', line 19

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