Method: Transloadit::Step#use
- Defined in:
- lib/transloadit/step.rb
#use(input) ⇒ String, ...
Specifies that this Step should process the provided input
instead of the output of the Step before it.
51 52 53 54 55 56 57 58 59 |
# File 'lib/transloadit/step.rb', line 51 def use(input) .delete(:use) && return if input.nil? [:use] = case input when Symbol then input.inspect when Array then input.map { |i| i.name } else [input.name] end end |