lib/metanorma/requirements/selector.rb in mn-requirements-0.2.0 vs lib/metanorma/requirements/selector.rb in mn-requirements-0.2.2

- old
+ new

@@ -3,11 +3,11 @@ require_relative "../../isodoc/i18n" require "metanorma-utils" module Metanorma class Requirements - attr_accessor :i18n, :labels + attr_accessor :i18n, :labels, :modspecidentifierbase Hash.include Metanorma::Utils::Hash def initialize(options) @default = options[:default] @@ -15,9 +15,10 @@ options[:script] || "Latn", options[:locale], options[:labels]) # @labels = @i18n.get.deep_merge(options[:labels] || {})["requirements"] @labels = @i18n.get["requirements"] + @modspecidentifierbase = options[:modspecidentifierbase] @models = model_names.each_with_object({}) { |k, m| m[k] = create(k) } end def model_names