Object
# File lib/prawn/image_handler.rb, line 33 def find(image_blob) handler = @handlers.find{ |h| h.can_render? image_blob } return handler if handler raise Prawn::Errors::UnsupportedImageType, "image file is an unrecognised format" end
# File lib/prawn/image_handler.rb, line 19 def register(handler) @handlers.delete(handler) @handlers.push handler end
Generated with the Darkfish Rdoc Generator 2.