Module: Ducktrap::Singleton::ClassMethods

Defined in:
lib/ducktrap/singleton.rb

Overview

InstanceMethods

Instance Method Summary collapse

Instance Method Details

#instanceDucktrap 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

Returns:



30
31
32
# File 'lib/ducktrap/singleton.rb', line 30

def instance
  @instance ||= new
end