Module: Relaton::Cen
- Defined in:
- lib/relaton/cen.rb,
lib/relaton/cen/hit.rb,
lib/relaton/cen/util.rb,
lib/relaton/cen/scraper.rb,
lib/relaton/cen/version.rb,
lib/relaton/cen/item_data.rb,
lib/relaton/cen/model/ext.rb,
lib/relaton/cen/processor.rb,
lib/relaton/cen/model/item.rb,
lib/relaton/cen/bibliography.rb,
lib/relaton/cen/model/bibdata.rb,
lib/relaton/cen/model/bibitem.rb,
lib/relaton/cen/hit_collection.rb,
lib/relaton/cen/model/docidentifier.rb,
lib/relaton/cen/model/structured_identifier.rb
Defined Under Namespace
Modules: Scraper, Util Classes: Bibdata, Bibitem, Bibliography, Docidentifier, Ext, Hit, HitCollection, Item, ItemData, Processor, StructuredIdentifier
Constant Summary collapse
- VERSION =
"2.1.0".freeze
Class Method Summary collapse
-
.grammar_hash ⇒ String
Returns hash of XML greammar.
Class Method Details
.grammar_hash ⇒ String
Returns hash of XML greammar
22 23 24 25 26 27 |
# File 'lib/relaton/cen.rb', line 22 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 Cen::VERSION + Bib::VERSION # grammars end |