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
piesync-puma-3.12.6.1 lib/puma/delegation.rb
piesync-puma-3.12.6 lib/puma/delegation.rb
puma-3.12.6-java lib/puma/delegation.rb
puma-3.12.6 lib/puma/delegation.rb
puma-3.12.5-java lib/puma/delegation.rb
puma-3.12.5 lib/puma/delegation.rb
puma-3.12.4-java lib/puma/delegation.rb
puma-3.12.4 lib/puma/delegation.rb
puma-3.12.2-java lib/puma/delegation.rb
puma-3.12.2 lib/puma/delegation.rb
chatops-rpc-0.0.2 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/puma-3.12.1/lib/puma/delegation.rb
chatops-rpc-0.0.1 fixtures/chatops-controller-example/vendor/bundle/ruby/2.5.0/gems/puma-3.12.1/lib/puma/delegation.rb
puma-4.2.0-java lib/puma/delegation.rb
puma-4.2.0 lib/puma/delegation.rb
puma-4.1.1-java lib/puma/delegation.rb
puma-4.1.1 lib/puma/delegation.rb
puma-4.1.0-java lib/puma/delegation.rb
puma-4.1.0 lib/puma/delegation.rb
puma-4.0.1-java lib/puma/delegation.rb
puma-4.0.1 lib/puma/delegation.rb