Sha256: a1d382a316bff78412ab2eb9e12cd20dc7a93263e1a2d9fcd559ea61de43acb7
Contents?: true
Size: 306 Bytes
Versions: 1
Compression:
Stored size: 306 Bytes
Contents
# frozen_string_literal: true module WannabeBool::InvalidValueBehaviour module False def self.call false end end module Nil def self.call nil end end module Error def self.call raise ArgumentError, 'is not a valid boolean representation' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
wannabe_bool-0.7.1 | lib/wannabe_bool/invalid_value_behaviour.rb |