Class: Lutaml::Express::Parsers::Exp

Inherits:
Object
  • Object
show all
Defined in:
lib/lutaml/express/parsers/exp.rb

Overview

Parses EXPRESS schema files (.exp) and cached repositories (.exp.cache).

Class Method Summary collapse

Class Method Details

.parse(io, _options = {}) ⇒ Expressir::Model::Repository

Parameters:

  • io (File, IO)

    file object with path to .exp file

  • options (Hash)

    parsing options

Returns:

  • (Expressir::Model::Repository)


15
16
17
# File 'lib/lutaml/express/parsers/exp.rb', line 15

def self.parse(io, _options = {})
  Expressir::Express::Parser.from_files([io.path])
end

.parse_cache(path, _options = {}) ⇒ Expressir::Model::Cache

Parameters:

  • path (String)

    path to cached .exp.cache file

  • options (Hash)

    parsing options

Returns:

  • (Expressir::Model::Cache)


22
23
24
# File 'lib/lutaml/express/parsers/exp.rb', line 22

def self.parse_cache(path, _options = {})
  Expressir::Express::Cache.from_file(path)
end