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, **call_options)
  options = {}
  options[:source] = file if file
  options[:destination] = destination if destination

  branch(**options).call!(**call_options)
end