Class: Strict::Validators::Boolean

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/strict/validators/boolean.rb

Instance Method Summary collapse

Instance Method Details

#===(value) ⇒ Object



10
11
12
# File 'lib/strict/validators/boolean.rb', line 10

def ===(value)
  value.equal?(true) || value.equal?(false)
end

#inspectObject Also known as: to_s



14
15
16
# File 'lib/strict/validators/boolean.rb', line 14

def inspect
  "Boolean()"
end