Skip to content
Permalink
Browse files

Added Hash#value?

  • Loading branch information
Alex Gaynor
Alex Gaynor committed Apr 9, 2013
1 parent 507d749 commit 21cc3d0aacbd61a0cbfc568f5743b77f13e17804
Showing with 7 additions and 2 deletions.
  1. +7 −0 lib-topaz/hash.rb
  2. +0 −2 spec/tags/core/hash/value_tags.txt
@@ -77,6 +77,13 @@ def rassoc(value)
nil
end

def value?(value)
each do |k, v|
return true if value == v
end
false
end

def values_at(*keys)
keys.map { |k| self[k] }
end

This file was deleted.

0 comments on commit 21cc3d0

Please sign in to comment.
You can’t perform that action at this time.