Sha256: e9cdafd068fba6f2861a1b29e7f29c09c2ac31093a4ab9872d0129fc78f02fba
Contents?: true
Size: 331 Bytes
Versions: 1
Compression:
Stored size: 331 Bytes
Contents
# frozen_string_literal: true module Scripper module Sequel module DatasetStripper class << self def strip(hsh) struct_klass = Struct.new(*hsh.keys) struct_klass.new(*hsh.transform_values { |v| ValueConverter.convert_value(v) }.values) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
scripper-0.1.0 | lib/scripper/sequel/dataset_stripper.rb |