Sha256: f968dd0ab493abbf651a50645b86aac9fefd2d43f29d52554174418c991c3cc1
Contents?: true
Size: 327 Bytes
Versions: 1
Compression:
Stored size: 327 Bytes
Contents
require File.dirname(__FILE__) + '/hashable' class Hash include Hashable # Return recursively hash representation of the given hash # # @return hash def to_deep_hash hash = {} self.keys.each do |key| hash[key] = deeply_to_hash(self[key]) end hash end alias_method :to_dh, :to_deep_hash end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hashable-0.1.2 | lib/hashable/hash.rb |