Sha256: 980efa354ac2342f16c21108d883c64bb588e4a662611a33736e1ef3cc8db244
Contents?: true
Size: 199 Bytes
Versions: 13
Compression:
Stored size: 199 Bytes
Contents
# frozen_string_literal: true class Hash def to_struct st = Struct.new(*keys) maps = values.map do |s| next s.to_struct if s.is_a?(Hash) s end st.new(*maps) end end
Version data entries
13 entries across 13 versions & 1 rubygems