class DotGrid::Pattern::Grid
Public Instance Methods
draw()
click to toggle source
# File lib/dot_grid/pattern/grid.rb, line 4 def draw pdf.stroke_color grid_color draw_grid do |row, column| pdf.stroke_horizontal_line(0, bounds.width, :at => row*spacing) if column == 0 pdf.stroke_vertical_line(0, bounds.height, :at => column*spacing) if row == 0 end end