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
#call ⇒ Object
9 10 11 |
# File 'lib/promenade/client/rack/singleton_caller.rb', line 9 def call(...) singleton.call(...) end |
#initialize_singleton ⇒ Object
5 6 7 |
# File 'lib/promenade/client/rack/singleton_caller.rb', line 5 def initialize_singleton(...) @singleton = new(...) end |
#singleton ⇒ Object
13 14 15 |
# File 'lib/promenade/client/rack/singleton_caller.rb', line 13 def singleton @singleton || initialize_singleton end |