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.
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
#exitcode ⇒ Object
26 27 28 29 30 |
# File 'lib/atk/console.rb', line 26 def exitcode if !@io_object return Errno::ENOENT.new end end |
#read ⇒ Object
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 |