From b4d352dadebdbc5c3bb563e7b4a551fbbbfba6ca Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Tue, 30 Jul 2013 20:25:06 -0400 Subject: [PATCH] rename Ledger to Book --- lib/gnucash.rb | 4 ++-- lib/gnucash/{ledger.rb => book.rb} | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) rename lib/gnucash/{ledger.rb => book.rb} (91%) diff --git a/lib/gnucash.rb b/lib/gnucash.rb index a2e1389..ed7d9de 100644 --- a/lib/gnucash.rb +++ b/lib/gnucash.rb @@ -1,8 +1,8 @@ -require "gnucash/ledger" +require "gnucash/book" require "gnucash/version" module Gnucash def self.open(fname) - Ledger.new(fname) + Book.new(fname) end end diff --git a/lib/gnucash/ledger.rb b/lib/gnucash/book.rb similarity index 91% rename from lib/gnucash/ledger.rb rename to lib/gnucash/book.rb index 614d9ed..eac9e7a 100644 --- a/lib/gnucash/ledger.rb +++ b/lib/gnucash/book.rb @@ -2,7 +2,7 @@ require "zlib" require "nokogiri" module Gnucash - class Ledger + class Book def initialize(fname) @ng = Nokogiri.XML(Zlib::GzipReader.open(fname).read) end