Method: Prawn::Document#stroke_bottom

Defined in:
lib/barkest_core/extensions/prawn_document_extensions.rb

#stroke_bottom(stroke_width = 0.5) ⇒ Object

Strokes the bottom of the current bounds.

The stroke_width is the thickness of the line to draw.



247
248
249
250
251
252
# File 'lib/barkest_core/extensions/prawn_document_extensions.rb', line 247

def stroke_bottom(stroke_width = 0.5)
  stored_line_width = line_width
  self.line_width = stroke_width
  horizontal_line 0, bounds.width, at: 0
  self.line_width = stored_line_width
end