Sha256: 7390054e7f061d920ff43aa0ceacec68e439ef7bae70061c2302398241a218ce

Contents?: true

Size: 233 Bytes

Versions: 2

Compression:

Stored size: 233 Bytes

Contents

# frozen_string_literal: true

class RactorPool::Mapper
  attr_reader :logger

  def initialize(logger:)
    @logger = logger
  end

  class << self
    def call(logger, *args)
      new(logger: logger).call(*args)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ractor_pool-0.1.1 lib/ractor_pool/mapper.rb
ractor_pool-0.1.0 lib/ractor_pool/mapper.rb