Module: Ducktrap::Singleton::ClassMethods
- Defined in:
- lib/ducktrap/singleton.rb
Overview
InstanceMethods
Instance Method Summary collapse
-
#instance ⇒ Ducktrap
(also: #build)
private
Return instance.
Instance Method Details
#instance ⇒ Ducktrap Also known as: build
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Return instance
30 31 32 |
# File 'lib/ducktrap/singleton.rb', line 30 def instance @instance ||= new end |