Skip to content

Instantly share code, notes, and snippets.

@austenito
Created January 27, 2015 02:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save austenito/871b73f6e3832c1bad7c to your computer and use it in GitHub Desktop.
Save austenito/871b73f6e3832c1bad7c to your computer and use it in GitHub Desktop.
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