To find a hash key by it's value, i.e. reverse lookup, one can use Hash#key Show archive.org snapshot . It's available in Ruby 1.9+.
確定! 回上一頁