Sha256: 63f15f052eedf06a226d75f810489e6301d9349c10edf1a7776369b796ec3258

Contents?: true

Size: 193 Bytes

Versions: 2

Compression:

Stored size: 193 Bytes

Contents

# frozen_string_literal: true

class DummyTransformer
  def initialize(&block)
    @block = block
  end

  def transform(value)
    block.call(value)
  end

  private

  attr_reader :block
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
darthjee-core_ext-2.0.0 spec/support/models/dummy_transformer.rb
darthjee-core_ext-1.7.4 spec/support/models/dummy_transformer.rb