module Scripper::Sequel::DatasetStripper
Public Class Methods
strip(hsh)
click to toggle source
# File lib/scripper/sequel/dataset_stripper.rb, line 7 def strip(hsh) struct_klass = Struct.new(*hsh.keys) struct_klass.new(*hsh.transform_values { |v| ValueConverter.convert_value(v) }.values) end