Sha256: e8187d91f77c9e027dbc785e9a44a3885e63c5bbd1a412ef0d11f6a3d5ca8f4e
Contents?: true
Size: 174 Bytes
Versions: 16
Compression:
Stored size: 174 Bytes
Contents
class OpenStruct def to_hash self.each_pair.with_object({}) do |(key, value), hash| hash[key] = value.is_a?(OpenStruct) ? value.to_hash : value end end end
Version data entries
16 entries across 16 versions & 1 rubygems