Class: JSONSkooma::Keywords::Core::Ref
- Defined in:
- lib/json_skooma/keywords/core/ref.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#each_schema, inherited, #initialize, #instance_types, #key, set_defaults, #static, value_schema=
Constructor Details
This class inherits a constructor from JSONSkooma::Keywords::Base
Instance Method Details
#evaluate(instance, result) ⇒ Object
13 14 15 16 |
# File 'lib/json_skooma/keywords/core/ref.rb', line 13 def evaluate(instance, result) @ref_schema.evaluate(instance, result) result.ref_schema = @ref_schema end |
#resolve ⇒ Object
9 10 11 |
# File 'lib/json_skooma/keywords/core/ref.rb', line 9 def resolve @ref_schema = parent_schema.resolve_ref(json) end |