Sha256: d1819faeb54e71aa4e979386ecd7fec06a6fcfc63c22daf94398257aaff83f7c
Contents?: true
Size: 500 Bytes
Versions: 2
Compression:
Stored size: 500 Bytes
Contents
# frozen_string_literal: true require_relative File.join("result", "fail") require_relative File.join("result", "pass") module Spectus # Namespace for the results. module Result # @param is_passed [Boolean] The value of an assertion. # @return [Class<Spectus::Result::Pass>, Class<Spectus::Result::Fail>] The # class of the result. # @example Get the pass class result. # call(true) # => Pass def self.call(is_passed) is_passed ? Pass : Fail end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spectus-3.4.0 | lib/spectus/result.rb |
spectus-3.3.4 | lib/spectus/result.rb |