module Clinvoice::Helper

Public Class Methods

format_currency(number) click to toggle source
# File lib/clinvoice/helper.rb, line 5
def self.format_currency(number)
  format('$%.2f', number.to_f)
end
new_bold_line(pdf, text) click to toggle source
# File lib/clinvoice/helper.rb, line 14
def self.new_bold_line(pdf, text)
  pdf.font 'Helvetica', style: :bold
  pdf.text_box text.to_s, at: [8,  pdf.cursor]
  pdf.font 'Helvetica', style: :normal
  pdf.move_down 12
end
new_line(pdf, text) click to toggle source
# File lib/clinvoice/helper.rb, line 9
def self.new_line(pdf, text)
  pdf.text_box text.to_s, at: [8, pdf.cursor]
  pdf.move_down 12
end