Sha256: 5d8fb2bf9c0fb91cbc458821f30b350383ec4f2f09ec00e90ff5c978c0f09ba4

Contents?: true

Size: 484 Bytes

Versions: 2

Compression:

Stored size: 484 Bytes

Contents

# frozen_string_literal: true

module Realize
  class Value
    # Default transformer that does nothing.
    class Verbatim
      acts_as_hashable

      # This is here to satisfy an underlying issue in acts_as_hashable.
      # The #make calls in the factory and hashable module should be calling #new with no
      # args if no keys are detected.
      def initialize(_opts = {}); end

      def transform(_resolver, value, _time, _record)
        value
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
realize-1.0.0.pre.alpha.1 lib/realize/value/verbatim.rb
realize-1.0.0.pre.alpha lib/realize/value/verbatim.rb