Project

General

Profile

Misc #12976

Update example of Hash#value? and Hash#has_value?

Added by herwin (Herwin W) over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
[ruby-core:78296]

Description

https://github.com/ruby/ruby/pull/1491

The same code is used for has_value? and value?, but according to http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-core/43765 has_value is deprecated. Use the non-deprecated syntax in the examples.

Also available in: Atom PDF