Module: RelatonEcma

Defined in:
lib/relaton_ecma/ecma_bibliography.rb,
lib/relaton_ecma.rb,
lib/relaton_ecma/util.rb,
lib/relaton_ecma/version.rb,
lib/relaton_ecma/processor.rb,
lib/relaton_ecma/xml_parser.rb,
lib/relaton_ecma/data_parser.rb,
lib/relaton_ecma/data_fetcher.rb,
lib/relaton_ecma/hash_converter.rb,
lib/relaton_ecma/bibliographic_item.rb

Overview

frozen_string_literal:true

Defined Under Namespace

Modules: EcmaBibliography, HashConverter, Util Classes: BibliographicItem, DataFetcher, DataParser, Processor, 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)


18
19
20
21
22
23
# File 'lib/relaton_ecma.rb', line 18

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