method

find

ruby latest stable - Class: Gem::List

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2_2_9) is shown here.

find()
public

No documentation available.

# File lib/rubygems/util/list.rb, line 24
    def find
      n = self
      while n
        v = n.value
        return v if yield(v)
        n = n.tail
      end

      nil
    end