Module: Relaton3gpp

Defined in:
lib/relaton_3gpp.rb,
lib/relaton_3gpp/parser.rb,
lib/relaton_3gpp/release.rb,
lib/relaton_3gpp/version.rb,
lib/relaton_3gpp/processor.rb,
lib/relaton_3gpp/xml_parser.rb,
lib/relaton_3gpp/bibliography.rb,
lib/relaton_3gpp/data_fetcher.rb,
lib/relaton_3gpp/hash_converter.rb,
lib/relaton_3gpp/bibliographic_item.rb

Defined Under Namespace

Modules: Bibliography Classes: BibliographicItem, DataFetcher, Error, HashConverter, Parser, Processor, Release, XMLParser

Constant Summary collapse

VERSION =
"1.10.3"

Class Method Summary collapse

Class Method Details

.grammar_hashString

Returns hash of XML reammar

Returns:

  • (String)


19
20
21
22
23
24
# File 'lib/relaton_3gpp.rb', line 19

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 grammars
end