Class: Yml2erd::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/yml2erd/parser.rb

Class Method Summary collapse

Class Method Details

.parse(yml) ⇒ Object

returns an object of Yml2erd::SchemaStructure



8
9
10
11
12
# File 'lib/yml2erd/parser.rb', line 8

def parse(yml)
  ss = Yml2erd::SchemaStructure.new(yml)
  Yml2erd::SchemaStructure::Validator.new(ss).validate
  ss
end