Sha256: 01b3a8bab6c6876a90346c6f16ffbe5aec9fdc17c3bbe35f5ad72cc5106fa87a
Contents?: true
Size: 354 Bytes
Versions: 2
Compression:
Stored size: 354 Bytes
Contents
# typed: strict # frozen_string_literal: true module Muina # Result Monad class Result < Value include PrivateCreation def self.Null # rubocop:disable Naming/MethodName Null.__send__(:new) end def self.[](success_klass, error_klass) Factory.new(success_klass: success_klass, error_klass: error_klass) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
muina-0.2.8 | lib/muina/result.rb |
muina-0.2.7 | lib/muina/result.rb |