Module: Singleton::SingletonClassMethods
- Defined in:
- lib/javonet-ruby-sdk/external_lib/singleton.rb,
lib/javonet-ruby-sdk/Binaries/Ruby/Linux/X64/external_lib/singleton.rb,
lib/javonet-ruby-sdk/Binaries/Ruby/MacOs/X64/external_lib/singleton.rb,
lib/javonet-ruby-sdk/Binaries/Ruby/Windows/X64/external_lib/singleton.rb
Overview
:nodoc:
Instance Method Summary collapse
-
#_load(str) ⇒ Object
By default calls instance().
-
#clone ⇒ Object
:nodoc:.
-
#instance ⇒ Object
:nodoc:.
Instance Method Details
#_load(str) ⇒ Object
By default calls instance(). Override to retain singleton state.
119 120 121 |
# File 'lib/javonet-ruby-sdk/external_lib/singleton.rb', line 119 def _load(str) instance end |
#clone ⇒ Object
:nodoc:
114 115 116 |
# File 'lib/javonet-ruby-sdk/external_lib/singleton.rb', line 114 def clone # :nodoc: Singleton.__init__(super) end |
#instance ⇒ Object
:nodoc:
123 124 125 |
# File 'lib/javonet-ruby-sdk/external_lib/singleton.rb', line 123 def instance # :nodoc: @singleton__instance__ || @singleton__mutex__.synchronize { @singleton__instance__ ||= new } end |