class Spectre::Assertion::OrEvaluation
Public Class Methods
new(value, other)
click to toggle source
Calls superclass method
Spectre::Assertion::Evaluation::new
# File lib/spectre/assertion.rb, line 184 def initialize value, other super(value, other) end
Public Instance Methods
call(predicate)
click to toggle source
# File lib/spectre/assertion.rb, line 188 def call predicate eval_assertion(predicate, @value) or eval_assertion(predicate, @other) end
to_s()
click to toggle source
# File lib/spectre/assertion.rb, line 192 def to_s "(#{@value.to_s} or #{@other.to_s})" end