Module: Schema::Boolean::TypeCheck
- Defined in:
- lib/schema/schema.rb
Class Method Summary collapse
Class Method Details
.call(type, val) ⇒ Object
157 158 159 160 161 |
# File 'lib/schema/schema.rb', line 157 def self.call(type, val) return true if val.nil? val == true || val == false end |