123456789_123456789_123456789_123456789_123456789_

Module: Puma::Delegation

Relationships & Source Files
Extension / Inclusion / Inheritance Descendants
Extended In:
Defined in: lib/puma/delegation.rb

Instance Method Summary

Instance Method Details

#forward(what, who)

[ GitHub ]

  
# 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