# File lib/scruffy/components/viewport.rb, line 15 def draw(svg, bounds, options={}) svg.g(options_for) { self.components.each do |component| component.render(svg, bounds_for( [bounds[:width], bounds[:height]], component.position, component.size ), options) end } end