From b95a51440b6378847c4ab5dd4cf9e96e18b5f241 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 19 Jan 2015 09:04:18 +0000 Subject: avoid aliasing global "spawn" method This makes debugging, grepping, and following code confusing at times and also unexpected breaks usage of the global "spawn" method. --- lib/dtas/sink.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/dtas/sink.rb') diff --git a/lib/dtas/sink.rb b/lib/dtas/sink.rb index b06e284..3eaab75 100644 --- a/lib/dtas/sink.rb +++ b/lib/dtas/sink.rb @@ -66,8 +66,8 @@ class DTAS::Sink # :nodoc: super end - def spawn(format, opts = {}) - raise "BUG: #{self.inspect}#spawn called twice" if @pid + def sink_spawn(format, opts = {}) + raise "BUG: #{self.inspect}#sink_spawn called twice" if @pid rv = [] pclass = @nonblock ? DTAS::PipeNB : DTAS::Pipe -- cgit v1.2.3-24-ge0c7