tubes 0.1.16 → 0.1.17
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/tubes.rb +9 -9
- metadata +1 -1
data/lib/tubes.rb
CHANGED
@@ -181,23 +181,23 @@ class Tube
|
|
181
181
|
def run_with_args(segment, args, options)
|
182
182
|
if args.empty?
|
183
183
|
if @invocations > 1
|
184
|
-
if options.
|
185
|
-
segment.send :run, @input, options
|
186
|
-
else
|
184
|
+
if options.empty?
|
187
185
|
segment.send :run, @input
|
186
|
+
else
|
187
|
+
segment.send :run, @input, options
|
188
188
|
end
|
189
189
|
else
|
190
|
-
if options.
|
191
|
-
segment.send :run, options
|
192
|
-
else
|
190
|
+
if options.empty?
|
193
191
|
segment.send :run
|
192
|
+
else
|
193
|
+
segment.send :run, options
|
194
194
|
end
|
195
195
|
end
|
196
196
|
else
|
197
|
-
if options.
|
198
|
-
segment.send :run, *args, options
|
199
|
-
else
|
197
|
+
if options.empty?
|
200
198
|
segment.send :run, *args
|
199
|
+
else
|
200
|
+
segment.send :run, *args, options
|
201
201
|
end
|
202
202
|
end
|
203
203
|
end
|