Sha256: 80ef2291fd8f1e9b04553dbaba1ca5067a49c858c42d67985c48a07bf15b2516

Contents?: true

Size: 280 Bytes

Versions: 2

Compression:

Stored size: 280 Bytes

Contents

# frozen_string_literal: true

class BCDD::Result
  module Mixin
    def Success(type, value = nil)
      Success.new(type: type, value: value, subject: self)
    end

    def Failure(type, value = nil)
      Failure.new(type: type, value: value, subject: self)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bcdd-result-0.5.0 lib/bcdd/result/mixin.rb
bcdd-result-0.4.0 lib/bcdd/result/mixin.rb