Class: SimpleJSONSchema::Validators::Base
- Inherits:
-
Object
- Object
- SimpleJSONSchema::Validators::Base
- Defined in:
- lib/simple_json_schema/validators/base.rb
Instance Method Summary collapse
Instance Method Details
#valid(scope) ⇒ Object
6 7 8 9 |
# File 'lib/simple_json_schema/validators/base.rb', line 6 def valid(scope) cast(scope) if scope.[:cast] == true validate(scope) end |