Method: HTTPClient::Util.hash_find_value

Defined in:
lib/httpclient/util.rb

.hash_find_value(hash, &block) ⇒ Object

Finds a value of a Hash.



85
86
87
88
# File 'lib/httpclient/util.rb', line 85

def hash_find_value(hash, &block)
  v = hash.find(&block)
  v ? v[1] : nil
end