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

Version Path
mirage-4.0.0.alpha10 server/extensions/hash.rb
mirage-4.0.0.alpha9 server/extensions/hash.rb
mirage-4.0.0.alpha8 server/extensions/hash.rb
mirage-4.0.0.alpha6 server/extensions/hash.rb
mirage-4.0.0.alpha5 server/extensions/hash.rb
mirage-4.0.0.alpha4 server/extensions/hash.rb
mirage-4.0.0.alpha3 server/extensions/hash.rb
mirage-4.0.0.alpha2 server/extensions/hash.rb
mirage-4.0.0.alpha1 server/extensions/hash.rb
mirage-3.0.14 server/extensions/hash.rb
mirage-3.0.13 server/extensions/hash.rb
mirage-3.0.12 server/extensions/hash.rb
mirage-3.0.11 server/extensions/hash.rb
mirage-3.0.10 server/extensions/hash.rb