lib/hanami/utils/hash.rb
# Returns a Ruby Hash as duplicated version of self
#
# @return [::Hash] the hash
#
# @since 0.3.0
#
# @see http://www.ruby-doc.org/core/Hash.html#method-i-to_h
Returns a Ruby Hash as duplicated version of self
Returns a Ruby Hash as duplicated version of self
def to_h
        @hash.each_with_object({}) do |(k, v), result|
          v = v.to_h if v.is_a?(self.class)
          result[k] = v
        end
      end
def to_h @hash . each_with_object ( { } ) do | ( k , v ) , result | v = v . to_h if v . is_a? ( self . class ) result [ k ] = v end end
Returns a Ruby Hash as duplicated version of self
Returns a Ruby Hash as duplicated version of self
None
::Hash
since
None
see
None