Module: ReverseProxy::Config

Defined in:
lib/reverse_proxy/config.rb,
lib/reverse_proxy/config/nginx.rb,
lib/reverse_proxy/config/generic.rb

Defined Under Namespace

Classes: Generic, Nginx

Class Method Summary collapse

Class Method Details

.for(instance) ⇒ Object



6
7
8
9
# File 'lib/reverse_proxy/config.rb', line 6

def self.for instance
  config_klass = self.const_get instance.class.name.split('::').last
  config_klass.new instance
end