Method: Brine::Selecting#select

Defined in:
lib/brine/selecting.rb

#select(target, negated = nil) ⇒ Object

Activate a Selector for 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).



108
109
110
# File 'lib/brine/selecting.rb', line 108

def select(target, negated=nil)
  use_selector(Selector.new(target, negated))
end