module Ray class Drawable # Draws the drawable on an image. def draw_on(image) image.draw_drawable self end # Draws the drawable. # # @option opts [Ray::Image] :on (Ray.screen) The image to draw the drawable # on. def draw(opts = {}) draw_on(opts[:on] || Ray.screen) end end end