Method: SimpleJSONSchema::Checker.at_value
- Defined in:
- lib/simple_json_schema/checker.rb
.at_value(scope, check, operation) ⇒ Object
10 11 12 13 |
# File 'lib/simple_json_schema/checker.rb', line 10 def at_value(scope, check, operation) over = scope[check] scope.error(check, count: over) if over && scope.value&.public_send(operation, over) end |