@api private Provides the implementation for `be_truthy`. Not intended to be instantiated directly.
@api private @return [String]
# File lib/rspec/matchers/built_in/be.rb, line 11 def failure_message "expected: truthy value\n got: #{actual.inspect}" end
@api private @return [String]
# File lib/rspec/matchers/built_in/be.rb, line 17 def failure_message_when_negated "expected: falsey value\n got: #{actual.inspect}" end
# File lib/rspec/matchers/built_in/be.rb, line 23 def match(_, actual) !!actual end