lib/thread/pipe.rb in thread-0.0.5 vs lib/thread/pipe.rb in thread-0.0.6

- old
+ new

@@ -87,5 +87,12 @@ end alias deq pop alias ~ pop end + +class Thread + # Helper to create a pipe. + def self.| (func) + Pipe.new | func + end +end