Sha256: 9ed75711390b52bd28d0e93db85757e047a98f9036daf7373a6a3c20212261fa

Contents?: true

Size: 354 Bytes

Versions: 3

Compression:

Stored size: 354 Bytes

Contents

# frozen_string_literal: true

require 'zx/result'

module Zx
  module Extendable
    Success = ->(*kwargs) { Result.Success(*kwargs) }
    Failure = ->(*kwargs) { Result.Failure(*kwargs) }

    def Success(...)
      Result.Success(...)
    end

    def Failure(...)
      Result.Failure(...)
    end
  end

  include Extendable
  extend Extendable
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
zx-result-0.0.3 lib/zx.rb
zx-result-0.0.2 lib/zx.rb
zx-result-0.0.1 lib/zx.rb