Sha256: 440b8dae30deedb6cd0cb0242cb145d1f8db26aa0bbfd43c8d1249d7effe335e

Contents?: true

Size: 455 Bytes

Versions: 4

Compression:

Stored size: 455 Bytes

Contents

module ThousandIsland
  module Components
    class Header < Base
      
      def render
        pdf.bounding_box([0, pdf.bounds.height], width: pdf.bounds.width, height: options[:height]) do
          yield if block_given?
        end
      end

      def repeated?
        options[:repeated]
      end

      def self.defaults
        {
          height: 33,
          bottom_padding: 20,
          repeated: true
        }
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
thousand_island-0.1.2 lib/thousand_island/components/header.rb
thousand_island-0.1.1 lib/thousand_island/components/header.rb
thousand_island-0.1.0 lib/thousand_island/components/header.rb
thousand_island-0.0.1 lib/thousand_island/components/header.rb