module Jsonschema::Matchers
Main
Constants
- VERSION
Attributes
configuration[W]
Public Class Methods
configuration()
click to toggle source
# File lib/jsonschema/matchers.rb, line 24 def self.configuration @configuration ||= Configuration.new end
configure() { |configuration| ... }
click to toggle source
# File lib/jsonschema/matchers.rb, line 28 def self.configure yield(configuration) end
Public Instance Methods
match_jsonschema(name: nil)
click to toggle source
# File lib/jsonschema/matchers.rb, line 32 def match_jsonschema(name: nil) schema_name = name || inspect.scan(/\"(.*?)\"/).join raise Error, NO_SCHEMA_NAME_ERROR unless schema_name MatchJsonschema.new(self.class.metadata, schema_name) end