Sha256: 15d5dae1fb03ce73fe7eab444fae1ab6558827604331a07f58ad09a17c06b830
Contents?: true
Size: 309 Bytes
Versions: 1
Compression:
Stored size: 309 Bytes
Contents
# frozen_string_literal: true module Solid module Failure def success?(_type = nil) false end def failure?(type = nil) type.nil? || type_checker.allow_failure?([type]) end def value_or yield(value) end private def kind :failure end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solid-result-2.0.0 | lib/solid/failure.rb |