Sha256: a9d25306327284dda4da7024a9cb772a17198e6dc2716c18109fc6a1e709d78f
Contents?: true
Size: 684 Bytes
Versions: 12
Compression:
Stored size: 684 Bytes
Contents
require "digest/md5" require "relaton_bib" require "relaton_iho/version" require "relaton_iho/iho_bibliography" require "relaton_iho/hash_converter" require "relaton_iho/xml_parser" require "relaton_iho/editorial_group" require "relaton_iho/iho_group" require "relaton_iho/comment_periond" require "relaton_iho/iho_bibliographic_item" module RelatonIho 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
12 entries across 12 versions & 1 rubygems