Module: Relaton::Omg
- Defined in:
- lib/relaton/omg.rb,
lib/relaton/omg/ext.rb,
lib/relaton/omg/item.rb,
lib/relaton/omg/util.rb,
lib/relaton/omg/bibdata.rb,
lib/relaton/omg/bibitem.rb,
lib/relaton/omg/scraper.rb,
lib/relaton/omg/version.rb,
lib/relaton/omg/item_data.rb,
lib/relaton/omg/processor.rb,
lib/relaton/omg/bibliography.rb
Defined Under Namespace
Modules: Bibliography, Util Classes: Bibdata, Bibitem, Ext, Item, ItemData, Processor, Scraper
Constant Summary collapse
- VERSION =
"2.1.0".freeze
Class Method Summary collapse
-
.grammar_hash ⇒ String
Returns hash of XML reammar.
Class Method Details
.grammar_hash ⇒ String
Returns hash of XML reammar
17 18 19 20 21 22 |
# File 'lib/relaton/omg.rb', line 17 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 Relaton::Omg::VERSION + Relaton::Bib::VERSION # grammars end |