Method: Brine::Selecting::Selector#initialize

Defined in:
lib/brine/selecting.rb

#initialize(target, negated = false) ⇒ Selector

Construct a selector to perform assertions against a provided target.

Parameters:

  • target (Object)

    Provide the value against which assertions will be performed.

  • negated (Boolean) (defaults to: false)

    Specify whether the assertions from this selector should be negated. This is deprecated and should instead be passed to #assert_that.



42
43
44
45
# File 'lib/brine/selecting.rb', line 42

def initialize(target, negated=false)
  @target = target
	@negated = negated
end