Module: Clinvoice::Helper
- Defined in:
- lib/clinvoice/helper.rb
Class Method Summary collapse
Class Method Details
.format_currency(number) ⇒ Object
5 6 7 |
# File 'lib/clinvoice/helper.rb', line 5 def self.format_currency(number) format('$%.2f', number.to_f) end |
.new_bold_line(pdf, text) ⇒ Object
14 15 16 17 18 19 |
# 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) ⇒ Object
9 10 11 12 |
# 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 |