Sha256: 8f387feb2079952903b628a5cb23117a613802cc572f2a5b770677786499dcc4

Contents?: true

Size: 265 Bytes

Versions: 1

Compression:

Stored size: 265 Bytes

Contents

module DotGrid
  module Pattern
    class HorizontalRule < Pattern

      def draw
        pdf.stroke_color grid_color
        (0..rows).each do |row|
          pdf.stroke_horizontal_line(0, bounds.width, :at => row*spacing)
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dot_grid-0.0.4 lib/dot_grid/pattern/horizontal_rule.rb