Sha256: be8b037f85d1d1bc92124751ce34ca6bd7b37a231f409124e4fbe623d3158565

Contents?: true

Size: 314 Bytes

Versions: 1

Compression:

Stored size: 314 Bytes

Contents

# frozen_string_literal: true

module Muina
  class Result
    private_class_method :new

    def self.success(value)
      Success.__send__(:new, value)
    end

    def self.failure(error)
      Failure.__send__(:new, error)
    end
  end
end

require_relative 'result/success'
require_relative 'result/failure'

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
muina-0.7.0 lib/muina/result.rb