Sha256: 0ae3c2c7b4fbcf6d9c3849ec9bb4fe2a23f3944a53acf324cbe4d72eaf604fa9
Contents?: true
Size: 682 Bytes
Versions: 2
Compression:
Stored size: 682 Bytes
Contents
# frozen_string_literal: true require "lutaml/model" module Suma module SiteConfig class SiteInfo < Lutaml::Model::Serializable attribute :organization, Lutaml::Model::Type::String attribute :name, Lutaml::Model::Type::String end class Sources < Lutaml::Model::Serializable attribute :files, Lutaml::Model::Type::String, collection: true end class Base < Lutaml::Model::Serializable attribute :source, Sources attribute :collection, SiteInfo end class Config < Lutaml::Model::Serializable attribute :metanorma, Base def self.from_file(path) from_yaml(File.read(path)) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
suma-0.1.6 | lib/suma/site_config.rb |
suma-0.1.5 | lib/suma/site_config.rb |