Module: RelatonOmg
- Defined in:
- lib/relaton_omg/omg_bibliography.rb,
lib/relaton_omg.rb,
lib/relaton_omg/util.rb,
lib/relaton_omg/scraper.rb,
lib/relaton_omg/version.rb,
lib/relaton_omg/processor.rb,
lib/relaton_omg/xml_parser.rb,
lib/relaton_omg/hash_converter.rb,
lib/relaton_omg/omg_bibliographic_item.rb
Overview
frozen_string_literal:true
Defined Under Namespace
Modules: HashConverter, OmgBibliography, Util Classes: OmgBibliographicItem, Processor, Scraper, XMLParser
Constant Summary collapse
- VERSION =
"1.19.1".freeze
Class Method Summary collapse
-
.grammar_hash ⇒ String
Returns hash of XML reammar.
Class Method Details
.grammar_hash ⇒ String
Returns hash of XML reammar
14 15 16 17 18 19 |
# File 'lib/relaton_omg.rb', line 14 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 RelatonOmg::VERSION + RelatonBib::VERSION # grammars end |