Skip to content

Instantly share code, notes, and snippets.

@bensheldon
Created April 30, 2013 20:17
Show Gist options
  • Save bensheldon/5491601 to your computer and use it in GitHub Desktop.
Save bensheldon/5491601 to your computer and use it in GitHub Desktop.
class MyClass
self.instance
Dispatch.once { @instance ||= self.new }
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment