Class: Lutaml::Uml::Parsers::Yaml

Inherits:
Object
  • Object
show all
Defined in:
lib/lutaml/uml/parsers/yaml.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.parse(yaml_path, options = {}) ⇒ Object



10
11
12
# File 'lib/lutaml/uml/parsers/yaml.rb', line 10

def self.parse(yaml_path, options = {})
  new.parse(yaml_path, options)
end

Instance Method Details

#parse(yaml_path, _options = {}) ⇒ Object



14
15
16
# File 'lib/lutaml/uml/parsers/yaml.rb', line 14

def parse(yaml_path, _options = {})
  Lutaml::Uml::Document.from_yaml(File.read(yaml_path))
end