Method: Brine::Selecting#select_any

Defined in:
lib/brine/selecting.rb

#select_any(target, negated = nil) ⇒ Object

Activate a Selector for any of the children of the provided target.

Parameters:

  • target (Object)

    Provide the value which the Selector should target.

  • negated (Boolean) (defaults to: nil)

    Specify whether the assertions should be expected to fail (DEPRECATED).



118
119
120
# File 'lib/brine/selecting.rb', line 118

def select_any(target, negated=nil)
  use_selector(AnySelector.new(target, negated))
end