Class: QrForge::Components::Module::Square
- Inherits:
-
ForgeComponent
- Object
- ForgeComponent
- QrForge::Components::Module::Square
- Defined in:
- lib/qr_forge/components/module/square.rb
Overview
Square component for the individual module.
Instance Method Summary collapse
Methods inherited from ForgeComponent
Constructor Details
This class inherits a constructor from QrForge::Components::ForgeComponent
Instance Method Details
#draw(y:, x:, quiet_zone:, color: "black", **_) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/qr_forge/components/module/square.rb', line 9 def draw(y:, x:, quiet_zone:, color: "black", **_) x += quiet_zone y += quiet_zone area = 1 @xml_builder.rect( x:, y:, width: area, height: area, fill: color, test_id: @test_id ) end |