mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
12 lines
197 B
Ruby
12 lines
197 B
Ruby
|
module Puma
|
||
|
module Delegation
|
||
|
def forward(what, who)
|
||
|
module_eval <<-CODE
|
||
|
def #{what}(*args, &blk)
|
||
|
#{who}.#{what}(*args, &blk)
|
||
|
end
|
||
|
CODE
|
||
|
end
|
||
|
end
|
||
|
end
|