Sha256: 3ac0f74b3369f423dd4d58068630b71df1164f5fb3b72f45a4b3e3e5014a5de1

Contents?: true

Size: 247 Bytes

Versions: 8

Compression:

Stored size: 247 Bytes

Contents

module GoldenFleece
  class Normalizer
    attr_reader :name

    def initialize(name, fn)
      @name = name
      @fn = fn
    end

    def normalize(record, value)
      fn.call record, value
    end

    private

    attr_reader :fn
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
golden_fleece-1.0.1 lib/golden_fleece/normalizer.rb
golden_fleece-1.0.0 lib/golden_fleece/normalizer.rb
golden_fleece-0.1.5 lib/golden_fleece/normalizer.rb
golden_fleece-0.1.4 lib/golden_fleece/normalizer.rb
golden_fleece-0.1.3 lib/golden_fleece/normalizer.rb
golden_fleece-0.1.2 lib/golden_fleece/normalizer.rb
golden_fleece-0.1.1 lib/golden_fleece/normalizer.rb
golden_fleece-0.1.0 lib/golden_fleece/normalizer.rb