Sha256: 3da2b2d107fb91c601c980a48f2dce64c2d2b3720f30af60f70c4fc07bb9f5ab

Contents?: true

Size: 276 Bytes

Versions: 2

Compression:

Stored size: 276 Bytes

Contents

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

2 entries across 2 versions & 1 rubygems

Version Path
wannabe_bool-0.7.0 lib/wannabe_bool/invalid_value_behaviour.rb
wannabe_bool-0.6.0 lib/wannabe_bool/invalid_value_behaviour.rb