lib/docrb/lib/docrb/doc_compiler/base_container.rb
# Intenral: Recursively unpacks a given element by checking its
# :definition and :overriding keys.
#
# Returns the updated element.
Recursively unpacks a given element by checking its
:definition and :overriding keys.

Returns the updated element.
Recursively unpacks a given element by checking its : definition and : overriding keys . Returns the updated element .
def unpack(elem)
        return unless elem
        elem.tap do |e|
          inner = e[:definition]
          e[:definition] = inner.is_a?(Hash) ? unpack(inner) : inner.to_h
          e[:overriding] = unpack(e[:overriding])
        end
      end
def unpack ( elem ) return unless elem elem . tap do | e | inner = e [ :definition ] e [ :definition ] = inner . is_a? ( Hash ) ? unpack ( inner ) : inner . to_h e [ :overriding ] = unpack ( e [ :overriding ] ) end end
Intenral: Recursively unpacks a given element by checking its
:definition and :overriding keys.
Intenral : Recursively unpacks a given element by checking its : definition and : overriding keys .
elem