class ThousandIsland::Components::Header
Public Class Methods
defaults()
click to toggle source
# File lib/thousand_island/components/header.rb, line 15 def self.defaults { height: 33, bottom_padding: 20, repeated: true } end
Public Instance Methods
render() { || ... }
click to toggle source
# File lib/thousand_island/components/header.rb, line 5 def render pdf.bounding_box([0, pdf.bounds.height], width: pdf.bounds.width, height: options[:height]) do yield if block_given? end end
repeated?()
click to toggle source
# File lib/thousand_island/components/header.rb, line 11 def repeated? options[:repeated] end