Sha256: 18e37a85657014c5345c9ca9d257afd3f4e15809d821fe65e404e281085caea4

Contents?: true

Size: 386 Bytes

Versions: 1

Compression:

Stored size: 386 Bytes

Contents

module DotGrid
  module Page
    class DotGrid < Page
      attr_accessor(
        :dot_weight,
        :grid_color,
        :spacing,
        :pattern
      )

      def initialize(params)
        super
        @pattern = ::DotGrid::Pattern::DotGrid.new(params.merge!(:bounds => pdf.bounds))
      end

      def generate
        super
        pattern.draw
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dot_grid-0.0.4 lib/dot_grid/page/dot_grid.rb