class Spectre::Assertion::Evaluation
Public Class Methods
new(value, other)
click to toggle source
# File lib/spectre/assertion.rb, line 150 def initialize value, other @value = value @other = other end
Public Instance Methods
eval_assertion(predicate, val)
click to toggle source
# File lib/spectre/assertion.rb, line 155 def eval_assertion predicate, val if val.is_a? Evaluation val.call(predicate) else predicate.call(val) end end