module Process

Public Class Methods

interact_ruby(input, *args) click to toggle source
   # File lib/nuggets/ruby.rb
56 def Process.interact_ruby(input, *args)
57   ruby(*args) { |_, i, o, e|
58     ::IO.interact({ input => i }, { o => $stdout, e => $stderr })
59   }
60 end
ruby(*args, &block) click to toggle source
   # File lib/nuggets/ruby.rb
41 def Process.ruby(*args, &block)
42   argv = ::Nuggets::Ruby.ruby_options_to_argv(args)
43   ::IO.popen4(*argv, &block); $?
44 end