class OpenStruct
def init_with(coder) # :nodoc:
Provides marshalling support for use by the YAML library.
def init_with(coder) # :nodoc: h = coder.map if h.size == 1 # support for legacy format key, val = h.first if key == 'table' h = val end end update_to_values!(h) end