Skip to content

Instantly share code, notes, and snippets.

@austenito
Created January 27, 2015 02:25
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