class RSpec::Matchers::BuiltIn::Be
@api private Provides the implementation for ‘be`. Not intended to be instantiated directly.
Public Class Methods
new(*args)
click to toggle source
# File lib/rspec/matchers/built_in/be.rb, line 104 def initialize(*args) @args = args end
Public Instance Methods
failure_message()
click to toggle source
@api private @return [String]
# File lib/rspec/matchers/built_in/be.rb, line 110 def failure_message "expected #{actual_formatted} to evaluate to true" end
failure_message_when_negated()
click to toggle source
@api private @return [String]
# File lib/rspec/matchers/built_in/be.rb, line 116 def failure_message_when_negated "expected #{actual_formatted} to evaluate to false" end
Private Instance Methods
match(_, actual)
click to toggle source
# File lib/rspec/matchers/built_in/be.rb, line 128 def match(_, actual) !!actual end