class CooCoo::Image::TransformChain

Public Class Methods

new(first, second) click to toggle source
# File lib/coo-coo/image.rb, line 148
def initialize(first, second)
  @first = first
  @second = second
end

Public Instance Methods

call(x, y) click to toggle source
# File lib/coo-coo/image.rb, line 153
def call(x, y)
  p = @second.call(x, y)
  p2 = @first.call(*p)
  #puts("#{self.inspect} #{x} #{y} -> #{p} -> #{p2}")
  p2
end