1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00
puma--puma/lib/puma/delegation.rb
Clint Shryock 26a1ab2e14 Standardize "block" usage
This commit standardizes on the use of `block` over `blk`. I found the usage of
both in the code.
2013-07-03 09:25:48 -05:00

11 lines
201 B
Ruby

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