method

select_first

rails latest stable - Class: HTML::Selector

Method deprecated or moved

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

select_first(root)
public

Similar to #select but returns the first matching element. Returns nil if no element matches the selector.