Sha256: ce6781de594b4e95829c4e7707311f1c6ea19fc193fa1a918f8d0151e679a6bc
Contents?: true
Size: 301 Bytes
Versions: 2
Compression:
Stored size: 301 Bytes
Contents
# frozen_string_literal: true module BCDD module Success def success?(type = nil) type.nil? || type_checker.allow_success?([type]) end def failure?(_type = nil) false end def value_or value end private def kind :success end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bcdd-result-1.1.0 | lib/bcdd/success.rb |
bcdd-result-1.0.0 | lib/bcdd/success.rb |