Module: Promenade::Client::Rack::SingletonCaller

Included in:
ExceptionHandler, RequestLabeler
Defined in:
lib/promenade/client/rack/singleton_caller.rb

Instance Method Summary collapse

Instance Method Details

#callObject



9
10
11
# File 'lib/promenade/client/rack/singleton_caller.rb', line 9

def call(...)
  singleton.call(...)
end

#initialize_singletonObject



5
6
7
# File 'lib/promenade/client/rack/singleton_caller.rb', line 5

def initialize_singleton(...)
  @singleton = new(...)
end

#singletonObject



13
14
15
# File 'lib/promenade/client/rack/singleton_caller.rb', line 13

def singleton
  @singleton || initialize_singleton
end