Sha256: 766f39a5b981acc9e38fb0eafc034b7c2ce5a9865d3901c2c2930bd87c6b107b
Contents?: true
Size: 546 Bytes
Versions: 3
Compression:
Stored size: 546 Bytes
Contents
# frozen_string_literal: true # # Copyright (c) 2020-present, Blue Marble Payroll, LLC # # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. # module Realize class Value # Transformer that always returns a static value class Static acts_as_hashable attr_reader :value def initialize(value: nil) @value = value freeze end def transform(_resolver, _value, _time, _record) value end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
realize-1.6.0 | lib/realize/value/static.rb |
realize-1.5.0 | lib/realize/value/static.rb |
realize-1.4.0 | lib/realize/value/static.rb |