Sha256: b4c6678cac3efeeef6f461c1b164f2ae1457ae587ea92b3213f0882fb203453f

Contents?: true

Size: 572 Bytes

Versions: 3

Compression:

Stored size: 572 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 Continuable
        private def Continue(**value)
          Success.new(type: :continued, value: value, subject: self)
        end
      end

      OPTIONS = { continue: Continuable }.freeze

      def self.options(config_flags)
        ::BCDD::Result::Config::Options.addon(map: config_flags, from: OPTIONS)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
bcdd-result-0.10.0 lib/bcdd/result/context/expectations/mixin.rb
bcdd-result-0.9.1 lib/bcdd/result/context/expectations/mixin.rb
bcdd-result-0.9.0 lib/bcdd/result/context/expectations/mixin.rb