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 "    def \#{what}(*args, &block)\n      \#{who}.\#{what}(*args, &block)\n    end\n  CODE\nend\n"