Module: Katarina::Parser

Defined in:
lib/katarina/parser.rb

Class Method Summary collapse

Class Method Details

.parse(path) ⇒ Object



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

def parse(path)
  path
    .then(&File.method(:read))
    .then { YAML.load(_1, symbolize_names: true) }
    .then(&method(:build_schemas))
end