lib/thousand_island/components/footer.rb in thousand_island-0.0.1 vs lib/thousand_island/components/footer.rb in thousand_island-0.1.0

- old
+ new

@@ -34,13 +34,11 @@ end def col2 start = col1_width pdf.bounding_box([start, box_height], width: col2_width, height: box_height) do - options[:style].each do |k,v| - pdf.send(k, v) if pdf.respond_to?(k) - end if options[:style] + inject_style yield if block_given? end end def col3 @@ -58,9 +56,13 @@ options[:style].merge(options[:numbering_options]) end def repeated? options[:repeated] + end + + def inject_style + options[:style].each { |k,v| pdf.send(k, v) if pdf.respond_to?(k) } if options[:style] end def self.defaults { height: 33,