Sha256: 331894c9875bebc018743e32917a26e2b98c0d9febc5e460c8962ac387ea3a86
Contents?: true
Size: 539 Bytes
Versions: 105
Compression:
Stored size: 539 Bytes
Contents
#!/usr/bin/env ruby require "yaml" require "expressir/express/parser" require "expressir/express/formatter" require "expressir/express/schema_head_formatter" require "expressir/express/hyperlink_formatter" exp_files = ARGV repository = Expressir::Express::Parser.from_files(exp_files) formatter = Class.new(Expressir::Express::Formatter) do include Expressir::Express::SchemaHeadFormatter include Expressir::Express::HyperlinkFormatter end result = repository.to_hash(formatter: formatter, skip_empty: true) puts YAML.dump(result)
Version data entries
105 entries across 105 versions & 1 rubygems