lib/bcdd/result/context/mixin.rb in bcdd-result-0.12.0 vs lib/bcdd/result/context/mixin.rb in bcdd-result-0.13.0
- old
+ new
@@ -23,18 +23,18 @@
def Success(type, **value)
_ResultAs(Success, type, value, terminal: true)
end
private def Continue(**value)
- _ResultAs(Success, :continued, value)
+ _ResultAs(Success, ::BCDD::Result::IgnoredTypes::CONTINUE, value)
end
end
module Given
private def Given(*values)
value = values.map(&:to_h).reduce({}) { |acc, val| acc.merge(val) }
- _ResultAs(Success, :given, value)
+ _ResultAs(Success, ::BCDD::Result::IgnoredTypes::GIVEN, value)
end
end
OPTIONS = { continue: Continue, given: Given }.freeze