Method: ImageProcessing::Chainable#call
- Defined in:
- lib/image_processing/chainable.rb
#call(file = nil, destination: nil, **call_options) ⇒ Object
Call the defined processing and get the result. Allows specifying the source file and destination.
55 56 57 58 59 60 61 |
# File 'lib/image_processing/chainable.rb', line 55 def call(file = nil, destination: nil, **) = {} [:source] = file if file [:destination] = destination if destination branch(**).call!(**) end |