Module: Relaton::Un
- Defined in:
- lib/relaton/un.rb,
lib/relaton/un/ext.rb,
lib/relaton/un/hit.rb,
lib/relaton/un/item.rb,
lib/relaton/un/util.rb,
lib/relaton/un/parser.rb,
lib/relaton/un/bibdata.rb,
lib/relaton/un/bibitem.rb,
lib/relaton/un/doctype.rb,
lib/relaton/un/session.rb,
lib/relaton/un/version.rb,
lib/relaton/un/item_data.rb,
lib/relaton/un/processor.rb,
lib/relaton/un/bibliography.rb,
lib/relaton/un/hit_collection.rb,
lib/relaton/un/token_generator.rb
Defined Under Namespace
Modules: TokenGenerator, Util Classes: Bibdata, Bibitem, Bibliography, Doctype, Error, Ext, Hit, HitCollection, Item, ItemData, Parser, Processor, Session
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
21 22 23 24 25 26 |
# File 'lib/relaton/un.rb', line 21 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::Un::VERSION + Relaton::Bib::VERSION # grammars end |