Module: Puma::Delegation

Included in:
Client, Server
Defined in:
lib/puma/delegation.rb

Instance Method Summary collapse

Instance Method Details

#forward(what, who) ⇒ Object



3
4
5
6
7
8
9
# File 'lib/puma/delegation.rb', line 3

def forward(what, who)
  module_eval <<-CODE
    def #{what}(*args, &block)
      #{who}.#{what}(*args, &block)
    end
  CODE
end