Skip to content

Instantly share code, notes, and snippets.

@ELLIOTTCABLE
Created November 13, 2008 11:54
Show Gist options
  • Select an option

  • Save ELLIOTTCABLE/24411 to your computer and use it in GitHub Desktop.

Select an option

Save ELLIOTTCABLE/24411 to your computer and use it in GitHub Desktop.
class NSBitmapImageRep
# This turns this:
# compositeToPoint(a_point, fromRect:a_rect, operation:an_operation, fraction:a_fraction)
# … to this:
# composite(point:a_point, fromRect:a_rect, operation:an_operation, fraction:a_fraction)
def composite(*args)
compositeToPoint(args.delete(:point), *args)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment