# File lib/backports/1.9.1/hash/rassoc.rb, line 3 def rassoc(value) k = key(value) v = fetch(k){return nil} [k, fetch(k)] if k || v == value end