Module: RelatonIetf

Defined in:
lib/relaton_ietf.rb,
lib/relaton_ietf/version.rb,
lib/relaton_ietf/scrapper.rb,
lib/relaton_ietf/committee.rb,
lib/relaton_ietf/processor.rb,
lib/relaton_ietf/xml_parser.rb,
lib/relaton_ietf/hash_converter.rb,
lib/relaton_ietf/ietf_bibliography.rb,
lib/relaton_ietf/ietf_bibliographic_item.rb

Defined Under Namespace

Modules: IetfBibliography, Scrapper Classes: Committee, HashConverter, IetfBibliographicItem, Processor, XMLParser

Constant Summary collapse

VERSION =
"1.9.2".freeze

Class Method Summary collapse

Class Method Details

.grammar_hashString

Returns hash of XML reammar

Returns:

  • (String)


15
16
17
18
19
20
# File 'lib/relaton_ietf.rb', line 15

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