Sha256: 8fe865eb448b5737c950debc7cc35dcbd046bc768f03754e9640c055366455d5

Contents?: true

Size: 338 Bytes

Versions: 1

Compression:

Stored size: 338 Bytes

Contents

module DotGrid
  module Page
    class Checkerboard < Page
      attr_accessor(
        :pattern,
      )

      def initialize(params)
        super
        @pattern = ::DotGrid::Pattern::Checkerboard.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/checkerboard.rb