Sha256: e9c4b8c1d8c4b5643c64b26f3c81e4a7f4896d9be4834b362ad50e4ebcdb5ce7

Contents?: true

Size: 280 Bytes

Versions: 2

Compression:

Stored size: 280 Bytes

Contents

# frozen_string_literal: true

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

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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bcdd-result-0.3.0 lib/bcdd/resultable.rb
bcdd-result-0.2.0 lib/bcdd/resultable.rb