class RSpec::Matchers::BuiltIn::Be

@api private Provides the implementation for `be`. Not intended to be instantiated directly.

Public Class Methods

new(*args, &block) click to toggle source
# File lib/rspec/matchers/built_in/be.rb, line 107
def initialize(*args, &block)
  @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 113
def failure_message
  "expected #{@actual.inspect} 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 119
def failure_message_when_negated
  "expected #{@actual.inspect} to evaluate to false"
end

Private Instance Methods

match(_, actual) click to toggle source
# File lib/rspec/matchers/built_in/be.rb, line 131
def match(_, actual)
  !!actual
end