Sha256: 7509779c106e8f35acdbb15a1101a8a2fa6f49d1ad3be15856383823103c71d6
Contents?: true
Size: 338 Bytes
Versions: 6
Compression:
Stored size: 338 Bytes
Contents
class Taxedo::Builder::Text < Taxedo::Builder::Base def generate line t('subtotal'), subtotal taxes.each { |tax| line tax.name, tax.amount } line t('total'), total return @content.join("\n") end private def line(label, value) @content << (label + ' ').ljust(15, '.') + ' ' + price(value).rjust(6) end end
Version data entries
6 entries across 6 versions & 1 rubygems