Class: Laser::Cutter::Renderer::RectRenderer

Inherits:
Base
  • Object
show all
Defined in:
lib/laser-cutter/renderer/rect_renderer.rb

Constant Summary

Constants inherited from Base

Base::BLACK, Base::BLUE

Instance Attribute Summary

Attributes inherited from Base

#config, #enclosure, #page_manager, #subject

Instance Method Summary collapse

Methods inherited from Base

#initialize, #units

Constructor Details

This class inherits a constructor from Laser::Cutter::Renderer::Base

Instance Method Details

#render(pdf) ⇒ Object



6
7
8
9
10
# File 'lib/laser-cutter/renderer/rect_renderer.rb', line 6

def render pdf
  rect.sides.each do |side|
    LineRenderer.new(config, side).render(pdf)
  end
end