class EasyJSONMatcher::Node
Attributes
node_validator[R]
Public Class Methods
new(opts: [], strict: false, validators:, **args)
click to toggle source
Calls superclass method
# File lib/easy_json_matcher/node.rb, line 7 def initialize(opts: [], strict: false, validators:, **args) super(**args) @node_validator = chain_factory.get_chain(steps: opts + [:object]) validators = node_content_validator.new(validators: validators, strict: strict) @node_validator.concat(validators) end
Public Instance Methods
call(value:)
click to toggle source
# File lib/easy_json_matcher/node.rb, line 14 def call(value:) node_validator.call(value: value) end