Sha256: 2f31474eb7a9efa36e815e3413e8f68cf7a2e0c061487f427eae8f1fccaeed7e

Contents?: true

Size: 769 Bytes

Versions: 3

Compression:

Stored size: 769 Bytes

Contents

require "relaton_bib"
require "relaton_bipm/version"
require "relaton_bipm/editorial_group"
require "relaton_bipm/structured_identifier"
require "relaton_bipm/bibliographic_date"
require "relaton_bipm/document_relation"
require "relaton_bipm/comment_periond"
require "relaton_bipm/bipm_bibliographic_item"
require "relaton_bipm/bipm_bibliography"
require "relaton_bipm/hash_converter"
require "relaton_bipm/xml_parser"

module RelatonBipm
  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

3 entries across 3 versions & 1 rubygems

Version Path
relaton-bipm-1.6.1 lib/relaton_bipm.rb
relaton-bipm-1.6.0 lib/relaton_bipm.rb
relaton-bipm-1.6.pre1 lib/relaton_bipm.rb