Created
January 27, 2015 02:25
-
-
Save austenito/871b73f6e3832c1bad7c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class InvoiceRepo | |
def initialize(invoices) | |
@invoices = invoices | |
end | |
def self.get_instance(invoices) | |
@invoice_repo ||= new(invoices) | |
end | |
def self.clear | |
@invoice_repo = nil | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment