Sha256: ecc07fd32716d3c3bc62ef27c6b493f6a7510e984fe9ae6d153d05cf67319e4d
Contents?: true
Size: 798 Bytes
Versions: 1
Compression:
Stored size: 798 Bytes
Contents
# frozen_string_literal: true class BCDD::Result::Context module Expectations::Mixin Factory = BCDD::Result::Expectations::Mixin::Factory Methods = BCDD::Result::Expectations::Mixin::Methods module Addons module Continue private def Continue(**value) 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) } Success(::BCDD::Result::IgnoredTypes::GIVEN, **value) end end OPTIONS = { continue: Continue, given: Given }.freeze def self.options(config_flags) ::BCDD::Result::Config::Options.addon(map: config_flags, from: OPTIONS) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bcdd-result-0.13.0 | lib/bcdd/result/context/expectations/mixin.rb |