Sha256: 64a6b86627a81cfab469254a458e5b19f5e7c68d81b78fe37b72cef1401eb7d1

Contents?: true

Size: 244 Bytes

Versions: 7

Compression:

Stored size: 244 Bytes

Contents

# frozen_string_literal: true

module RowBoat
  # @api private
  class ValueConverter
    attr_reader :converter

    def initialize(&block)
      @converter = block
    end

    def convert(value)
      converter.call(value)
    end
  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
gunwale-0.7.0 lib/row_boat/value_converter.rb
gunwale-0.6.0 lib/row_boat/value_converter.rb
row_boat-0.5.0 lib/row_boat/value_converter.rb
row_boat-0.4.0 lib/row_boat/value_converter.rb
row_boat-0.3.0 lib/row_boat/value_converter.rb
row_boat-0.2.0 lib/row_boat/value_converter.rb
row_boat-0.1.0 lib/row_boat/value_converter.rb