class Hash def self.recursive new do |hash, key| hash[key] = recursive end end end