Module: Puma::Delegation
Instance Method Summary collapse
Instance Method Details
#forward(what, who) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/puma/delegation.rb', line 5 def forward(what, who) module_eval <<-CODE def #{what}(*args, &block) #{who}.#{what}(*args, &block) end CODE end |