Module: ValueSemantics::Bool
- Defined in:
- lib/value_semantics.rb
Overview
Validator that only matches ‘true` and `false`
Class Method Summary collapse
Class Method Details
.===(value) ⇒ Boolean
320 321 322 |
# File 'lib/value_semantics.rb', line 320 def self.===(value) true.equal?(value) || false.equal?(value) end |