Class: CommandResult
- Inherits:
-
Object
- Object
- CommandResult
- Defined in:
- lib/atk/console.rb
Defined Under Namespace
Classes: Error
Instance Method Summary collapse
- #exitcode ⇒ Object
-
#initialize(io_object, process_object) ⇒ CommandResult
constructor
A new instance of CommandResult.
- #read ⇒ Object
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
#exitcode ⇒ Object
28 29 30 31 32 |
# File 'lib/atk/console.rb', line 28 def exitcode if !@io_object return Errno::ENOENT.new end end |
#read ⇒ Object
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 |