Class: JSONSkooma::Keywords::Content::ContentSchema
- Inherits:
-
BaseAnnotation
- Object
- Base
- BaseAnnotation
- JSONSkooma::Keywords::Content::ContentSchema
- Defined in:
- lib/json_skooma/keywords/content/content_schema.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#each_schema, inherited, #initialize, #instance_types, #key, #resolve, set_defaults, #static, value_schema=
Constructor Details
This class inherits a constructor from JSONSkooma::Keywords::Base
Instance Method Details
#evaluate(instance, result) ⇒ Object
11 12 13 14 15 |
# File 'lib/json_skooma/keywords/content/content_schema.rb', line 11 def evaluate(instance, result) return super if result.sibling(instance, "contentMediaType") result.discard end |