Class: ImageProcessing::Builder

Inherits:
Object
  • Object
show all
Includes:
Chainable
Defined in:
lib/image_processing/builder.rb

Instance Method Summary collapse

Methods included from Chainable

#branch, #call, #convert, #custom, #default_options, #loader, #method_missing, #operation, #saver, #source

Constructor Details

#initialize(options) ⇒ Builder

Returns a new instance of Builder.



5
6
7
# File 'lib/image_processing/builder.rb', line 5

def initialize(options)
  @default_options = options
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ImageProcessing::Chainable

Instance Method Details

#call!(**options) ⇒ Object



9
10
11
# File 'lib/image_processing/builder.rb', line 9

def call!(**options)
  Pipeline.new(default_options).call(**options)
end