Sha256: a7ae36d64f2a94c7b68c026aad25793a4f8383346598082ded21f93600607828
Contents?: true
Size: 400 Bytes
Versions: 1
Compression:
Stored size: 400 Bytes
Contents
require_relative 'canvas' module WhirledPeas module Graphics class Renderer def initialize(template, width, height) @template = template @width = width @height = height end def paint(&block) template.paint(Canvas.new(0, 0, width, height, 0, 0), &block) end private attr_reader :template, :width, :height end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
whirled_peas-0.6.0 | lib/whirled_peas/graphics/renderer.rb |