Module: RelatonIho

Defined in:
lib/relaton_iho.rb,
lib/relaton_iho/util.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: HashConverter, Util Classes: CommentPeriond, Commission, Committee, DocumentType, EditorialGroup, EditorialGroupCollection, Error, IHOGroup, IhoBibliographicItem, IhoBibliography, Processor, Workgroup, XMLParser

Constant Summary collapse

VERSION =
"1.19.1".freeze

Class Method Summary collapse

Class Method Details

.grammar_hashString

Returns hash of XML reammar

Returns:

  • (String)


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

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