Sha256: 2faf823fad0da3dddd4694f1ae9ebd5cffb1b2a499b2d9348b89595e802f1696
Contents?: true
Size: 410 Bytes
Versions: 4
Compression:
Stored size: 410 Bytes
Contents
module ImageProcessing class Processor def initialize(pipeline) @pipeline = pipeline end def apply_operation(name, image, *args) if respond_to?(name) public_send(name, image, *args) else image.send(name, *args) end end def custom(image, block) (block && block.call(image)) || image end private attr_reader :pipeline end end
Version data entries
4 entries across 4 versions & 1 rubygems