class Rwath::Process
Public Class Methods
new(command)
click to toggle source
# File lib/rwath/process.rb, line 3 def initialize(command) @command = command end
Public Instance Methods
split_exec(text)
click to toggle source
# File lib/rwath/process.rb, line 7 def split_exec(text) output = IO.popen(@command, "r+") {|io| io.puts text io.close_write io.gets } output.chomp end