lib/datacaster/comparator.rb in datacaster-0.9.1 vs lib/datacaster/comparator.rb in datacaster-2.0.1

- old
+ new

@@ -4,10 +4,10 @@ @value = value @name = name @error = error || "must be equal to #{value.inspect}" end - def call(object) + def cast(object) intermediary_result = super(object) object = intermediary_result.value if @value == object Datacaster.ValidResult(object)