Sha256: 8a1577995e61ed125d42672f253447875b564e8605ce0578a31c81dc51871c42

Contents?: true

Size: 524 Bytes

Versions: 1

Compression:

Stored size: 524 Bytes

Contents

# frozen_string_literal: true

class Solid::Output
  class Expectations < Solid::Result::Expectations
    require_relative 'expectations/mixin'

    def self.mixin_module
      Mixin
    end

    def self.result_factory_without_expectations
      ::Solid::Output
    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

1 entries across 1 versions & 1 rubygems

Version Path
solid-result-2.0.0 lib/solid/output/expectations.rb