This commit is contained in:
Gwenhael Le Moine 2021-05-12 17:56:59 +02:00
parent 71574065fe
commit 03a91bc4ec
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -6,7 +6,7 @@ class Ledger
@last_mtime : Time
def initialize( binary : String = "ledger",
ledger_file : String = ENV[ "LEDGER_FILE" ] ||= "${ENV[ \"HOME\" ]}/org/comptes.ledger" )
ledger_file : String = ENV[ "LEDGER_FILE" ] ||= "#{ENV[ "HOME" ]}/org/comptes.ledger" )
@binary = binary
@file = ledger_file
@last_mtime = File.info(@file).modification_time