Sha256: b6bc00c175066408e2fc663dddc13613ba60a6f1394dde78ad2482f2e7e3d043

Contents?: true

Size: 282 Bytes

Versions: 8

Compression:

Stored size: 282 Bytes

Contents

module DotGrid
  module Pattern
    class HorizontalRule < Pattern
      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
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
dot_grid-0.0.12 lib/dot_grid/pattern/horizontal_rule.rb
dot_grid-0.0.11 lib/dot_grid/pattern/horizontal_rule.rb
dot_grid-0.0.10 lib/dot_grid/pattern/horizontal_rule.rb
dot_grid-0.0.9 lib/dot_grid/pattern/horizontal_rule.rb
dot_grid-0.0.8 lib/dot_grid/pattern/horizontal_rule.rb
dot_grid-0.0.7 lib/dot_grid/pattern/horizontal_rule.rb
dot_grid-0.0.6 lib/dot_grid/pattern/horizontal_rule.rb
dot_grid-0.0.5 lib/dot_grid/pattern/horizontal_rule.rb