I would like to call a method of a Singleton Object without the reference to its instance
SingletonKlass.my_method
instead of
S
Instead of SingletonKlass, I'll use the name UrlHelper as a more concrete example.
SingletonKlass
UrlHelper
require 'singleton' class UrlHelperSingleton include Singleton def my_method ... end end UrlHelper = UrlHelperSingleton.instance # then elsewhere UrlHelper.my_method