Module: Shrine::Plugins::Processing::ClassMethods

Defined in:
lib/shrine/plugins/processing.rb

Instance Method Summary collapse

Instance Method Details

#process(action, &block) ⇒ Object


14
15
16
17
# File 'lib/shrine/plugins/processing.rb', line 14

def process(action, &block)
  opts[:processing][action] ||= []
  opts[:processing][action] << block
end