Sha256: 9fced8d38e65e6ca58efddc4bee7d6f2f695164be522ad547bf979b83db878d3
Contents?: true
Size: 270 Bytes
Versions: 14
Compression:
Stored size: 270 Bytes
Contents
#class Hash # alias_method :backup, :[] # # def [] desired_key # result = backup(desired_key) # return result unless result.nil? # key, value = find{|key, value| key.is_a?(Regexp) && desired_key.is_a?(String) && key.match(desired_key) } # value # end #end
Version data entries
14 entries across 14 versions & 1 rubygems