Class: Jsonschema::Matchers::Metadater
- Inherits:
-
Object
- Object
- Jsonschema::Matchers::Metadater
- Defined in:
- lib/jsonschema/matchers/metadater.rb
Overview
Generates correct file path
Class Method Summary collapse
Class Method Details
.call(metadata) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/jsonschema/matchers/metadater.rb', line 8 def call() raise Error, 'Argument is not a Hash' unless .is_a?(Hash) description = if [:description].empty? [:scoped_id] else [:description].tr(' ', '_') end example_group = [:parent_example_group] generate(example_group, description) end |