Module: RelatonUn

Defined in:
lib/relaton_un.rb,
lib/relaton_un/hit.rb,
lib/relaton_un/util.rb,
lib/relaton_un/session.rb,
lib/relaton_un/version.rb,
lib/relaton_un/processor.rb,
lib/relaton_un/xml_parser.rb,
lib/relaton_un/document_type.rb,
lib/relaton_un/editorialgroup.rb,
lib/relaton_un/hash_converter.rb,
lib/relaton_un/hit_collection.rb,
lib/relaton_un/un_bibliography.rb,
lib/relaton_un/un_bibliographic_item.rb

Defined Under Namespace

Modules: HashConverter, Util Classes: DocumentType, EditorialGroup, Error, Hit, HitCollection, Processor, Session, UnBibliographicItem, UnBibliography, XMLParser

Constant Summary collapse

VERSION =
"1.20.0".freeze

Class Method Summary collapse

Class Method Details

.grammar_hashString

Returns hash of XML reammar

Returns:

  • (String)


20
21
22
23
24
25
# File 'lib/relaton_un.rb', line 20

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 RelatonUn::VERSION + RelatonBib::VERSION # grammars
end