Sha256: 8aadf531a9e434111ff85b2a1c5446f049f60f7e3b6049c313e0c23b9d7bf8da
Contents?: true
Size: 460 Bytes
Versions: 3
Compression:
Stored size: 460 Bytes
Contents
# frozen_string_literal: true module Micro module Service class Result module Helpers private def Success(arg=nil) value, type = block_given? ? [yield, arg] : [arg, nil] Result::Success[value: value, type: type] end private def Failure(arg=nil) value, type = block_given? ? [yield, arg] : [arg, nil] Result::Failure[value: value, type: type] end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
u-service-0.11.0 | lib/micro/service/result/helpers.rb |
u-service-0.10.0 | lib/micro/service/result/helpers.rb |
u-service-0.9.0 | lib/micro/service/result/helpers.rb |