Sha256: 6a011f03d1f26bb5b3141db83d6f41c98712d59966349705657d678519b8dfa4

Contents?: true

Size: 539 Bytes

Versions: 6

Compression:

Stored size: 539 Bytes

Contents

# frozen_string_literal: true

class BCDD::Result::Context
  class Expectations < BCDD::Result::Expectations
    require_relative 'expectations/mixin'

    def self.mixin_module
      Mixin
    end

    def self.result_factory_without_expectations
      ::BCDD::Result::Context
    end

    private_class_method :mixin!, :mixin_module, :result_factory_without_expectations

    def Success(type, **value)
      _ResultAs(Success, type, value)
    end

    def Failure(type, **value)
      _ResultAs(Failure, type, value)
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
bcdd-result-0.13.0 lib/bcdd/result/context/expectations.rb
bcdd-result-0.12.0 lib/bcdd/result/context/expectations.rb
bcdd-result-0.11.0 lib/bcdd/result/context/expectations.rb
bcdd-result-0.10.0 lib/bcdd/result/context/expectations.rb
bcdd-result-0.9.1 lib/bcdd/result/context/expectations.rb
bcdd-result-0.9.0 lib/bcdd/result/context/expectations.rb