class Spectre::Assertion::AndEvaluation

Public Class Methods

new(value, other) click to toggle source
Calls superclass method Spectre::Assertion::Evaluation::new
# File lib/spectre/assertion.rb, line 199
def initialize value, other
  super(value, other)
end

Public Instance Methods

call(predicate) click to toggle source
# File lib/spectre/assertion.rb, line 203
def call predicate
  eval_assertion(predicate, @value) and eval_assertion(predicate, @other)
end
to_s() click to toggle source
# File lib/spectre/assertion.rb, line 207
def to_s
  "(#{@value.to_s} and #{@other.to_s})"
end