Module: RSchema::BooleanSchema
- Defined in:
- lib/rschema.rb
Class Method Summary collapse
Class Method Details
.schema_walk(value, mapper) ⇒ Object
231 232 233 234 235 236 237 |
# File 'lib/rschema.rb', line 231 def self.schema_walk(value, mapper) if value.is_a?(TrueClass) || value.is_a?(FalseClass) value else RSchema::ErrorDetails.new(value, 'is not a boolean') end end |