module Process

Public Class Methods

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