Sha256: 01069bf96e5b1f8b2aced2c13249d0181cdc82fdb525b1cd2748ab6699ef0fa6
Contents?: true
Size: 459 Bytes
Versions: 15
Compression:
Stored size: 459 Bytes
Contents
require "mechanize" require "relaton_itu/version" require "relaton_itu/itu_bibliography" require "digest/md5" module RelatonItu 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 }.join Digest::MD5.hexdigest grammars end end
Version data entries
15 entries across 15 versions & 1 rubygems