Sha256: 2893fb11cdc2e1043fa3edede3646898db1b7cbdd1f2d125a18866863f4fc8a5
Contents?: true
Size: 438 Bytes
Versions: 26
Compression:
Stored size: 438 Bytes
Contents
# frozen_string_literal: true module Mobility module Sequel =begin Internal class used to initialize column value(s) by default to a hash. =end class HashInitializer < Module def initialize(*columns) class_eval <<-EOM, __FILE__, __LINE__ + 1 def initialize_set(values) #{columns.map { |c| "self[:#{c}] = {}" }.join(';')} super end EOM end end end end
Version data entries
26 entries across 26 versions & 1 rubygems