class Layout

Public Class Methods

clear() click to toggle source
# File lib/moneymanager/layout.rb, line 61
def self.clear
  print "\e[H\e[2J"
end
formatted_amount(amount) click to toggle source
# File lib/moneymanager/layout.rb, line 32
def self.formatted_amount(amount)
  s = format('%.2f €', amount)
  amount < 0 ? s.red : s.green
end
print_generic_rows(rows) click to toggle source
print_multiple(entries) click to toggle source
print_single(entry) click to toggle source
print_single_value(total) click to toggle source