Skip to content
Permalink
Browse files

simplify a bit

  • Loading branch information
alex committed Jul 5, 2013
1 parent f55d6fd commit 49d480533f7926047ab01e479a988f4ec4429a9d
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib-topaz/kernel.rb
@@ -76,9 +76,9 @@ def loop(&block)

def `(cmd)
cmd = Topaz.convert_type(cmd, String, :to_str)
res = ''
res = nil
IO.popen(cmd) do |r|
res << r.read
res = r.read
Process.waitpid(r.pid)
end
res

0 comments on commit 49d4805

Please sign in to comment.
You can’t perform that action at this time.