Skip to content

Instantly share code, notes, and snippets.

@practicingruby
Created February 15, 2012 16:24
Show Gist options
  • Select an option

  • Save practicingruby/1837037 to your computer and use it in GitHub Desktop.

Select an option

Save practicingruby/1837037 to your computer and use it in GitHub Desktop.
module Prawn
class Canvas
def initialize(document)
self.document = document
end
def method_missing(id, *a, &b)
document.send(id, *a, &b)
end
private
attr_accessor :document
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment