Hi,
In message "[ruby-talk:13053] Pipes and such"
on 01/03/22, "Hal E. Fulton" <hal9000 / hypermetrics.com> writes:
|Suppose I have three Ruby methods (doesn't matter
|whether they are bound to a receiver or are "standalone").
|And suppose they read standard input and write to standard
|output. How would I (easily/properly) chain them together,
|effectively doing meth1 | meth2 | meth3 ?
stdio are process global resource so that I don't think it works.
But you may be interested in "shell" library in the RAA.
http://www.ruby-lang.org/en/raa-list.rhtml?name=Shell
matz.