@api private Provides the implementation for `be_nil`. Not intended to be instantiated directly.
@api private @return [String]
# File lib/rspec/matchers/built_in/be.rb, line 59 def failure_message "expected: nil\n got: #{actual.inspect}" end
@api private @return [String]
# File lib/rspec/matchers/built_in/be.rb, line 65 def failure_message_when_negated "expected: not nil\n got: nil" end
# File lib/rspec/matchers/built_in/be.rb, line 71 def match(_, actual) actual.nil? end