Sha256: 06c637dc8c766e8a4119c552de6e321d2bd6796e05b48de00cfd4f413ef2a00b
Contents?: true
Size: 475 Bytes
Versions: 12
Compression:
Stored size: 475 Bytes
Contents
require "relaton_iso_bib/version" require "relaton_iso_bib/iso_bibliographic_item" require "digest/md5" module RelatonIsoBib class Error < StandardError; end # Returns hash of XML reammar # @return [String] 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 end
Version data entries
12 entries across 12 versions & 1 rubygems