Module: Exit_Zero::Child::Base
- Included in:
- Exit_Zero::Child
- Defined in:
- lib/Exit_Zero.rb
Instance Attribute Summary collapse
-
#child ⇒ Object
readonly
Returns the value of attribute child.
-
#cmd ⇒ Object
readonly
Returns the value of attribute cmd.
Instance Method Summary collapse
Instance Attribute Details
#child ⇒ Object (readonly)
Returns the value of attribute child.
39 40 41 |
# File 'lib/Exit_Zero.rb', line 39 def child @child end |
#cmd ⇒ Object (readonly)
Returns the value of attribute cmd.
39 40 41 |
# File 'lib/Exit_Zero.rb', line 39 def cmd @cmd end |
Instance Method Details
#initialize(*cmd) ⇒ Object
40 41 42 43 |
# File 'lib/Exit_Zero.rb', line 40 def initialize *cmd @child = POSIX::Spawn::Child.new(*cmd) @cmd = cmd.join(' ') end |
#split_lines ⇒ Object
45 46 47 |
# File 'lib/Exit_Zero.rb', line 45 def split_lines Split_Lines(child.out) end |