Module: RelatonIho

Extended by:
Config
Defined in:
lib/relaton_iho.rb,
lib/relaton_iho/util.rb,
lib/relaton_iho/config.rb,
lib/relaton_iho/version.rb,
lib/relaton_iho/iho_group.rb,
lib/relaton_iho/processor.rb,
lib/relaton_iho/xml_parser.rb,
lib/relaton_iho/document_type.rb,
lib/relaton_iho/hash_converter.rb,
lib/relaton_iho/comment_periond.rb,
lib/relaton_iho/editorial_group.rb,
lib/relaton_iho/iho_bibliography.rb,
lib/relaton_iho/iho_bibliographic_item.rb

Defined Under Namespace

Modules: Config, HashConverter, Util Classes: CommentPeriond, Commission, Committee, Configuration, DocumentType, EditorialGroup, EditorialGroupCollection, Error, IHOGroup, IhoBibliographicItem, IhoBibliography, Processor, Workgroup, XMLParser

Constant Summary collapse

VERSION =
"1.18.0".freeze

Class Method Summary collapse

Class Method Details

.grammar_hashString

Returns hash of XML reammar

Returns:

  • (String)


22
23
24
25
26
27
# File 'lib/relaton_iho.rb', line 22

def self.grammar_hash
  # gem_path = File.expand_path "..", __dir__
  # grammars_path = File.join gem_path, "grammars", "*"
  # grammars = Dir[grammars_path].sort.map { |gp| File.read gp }.join
  Digest::MD5.hexdigest RelatonIho::VERSION + RelatonBib::VERSION # grammars
end