Sha256: 511690960af48def8e38b94dd6f2a7c9d6570b239998585a9957ed90958481d1

Contents?: true

Size: 232 Bytes

Versions: 24

Compression:

Stored size: 232 Bytes

Contents

# frozen_string_literal: true

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

Version data entries

24 entries across 24 versions & 3 rubygems

Version Path
puma-4.0.0-java lib/puma/delegation.rb
puma-4.0.0 lib/puma/delegation.rb
puma-3.12.1-java lib/puma/delegation.rb
puma-3.12.1 lib/puma/delegation.rb