Method: MediaTypes::Scheme#validate
- Defined in:
- lib/media_types/scheme.rb
#validate(output, options = nil, **opts) ⇒ TrueClass
Validates the output and raises on certain validation errors
102 103 104 105 106 107 108 109 |
# File 'lib/media_types/scheme.rb', line 102 def validate(output, = nil, **opts) ||= ValidationOptions.new(**opts) .context = output catch(:end) do validate!(output, , context: nil) end end |