module RelatonIsoBib

Constants

VERSION

Public Class Methods

grammar_hash() click to toggle source

Returns hash of XML reammar @return [String]

# File lib/relaton_iso_bib.rb, line 10
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, encoding: "UTF-8" }.join
  Digest::MD5.hexdigest grammars
end