Method: Utils::IRB::String#|
- Defined in:
- lib/utils/irb.rb
#|(cmd) ⇒ Object
Pipe this string into cmd.
423 424 425 426 427 428 429 |
# File 'lib/utils/irb.rb', line 423 def |(cmd) IO.popen(cmd, 'w+') do |f| f.write self f.close_write return f.read end end |