Module: RelatonCen
- Defined in:
- lib/relaton_cen.rb,
lib/relaton_cen/hit.rb,
lib/relaton_cen/util.rb,
lib/relaton_cen/version.rb,
lib/relaton_cen/scrapper.rb,
lib/relaton_cen/processor.rb,
lib/relaton_cen/xml_parser.rb,
lib/relaton_cen/hash_converter.rb,
lib/relaton_cen/hit_collection.rb,
lib/relaton_cen/cen_bibliography.rb,
lib/relaton_cen/biblographic_item.rb
Defined Under Namespace
Modules: HashConverter, Scrapper, Util Classes: BibliographicItem, CenBibliography, Hit, HitCollection, Processor, XMLParser
Constant Summary collapse
- VERSION =
"1.19.0"
Class Method Summary collapse
-
.grammar_hash ⇒ String
Returns hash of XML greammar.
Class Method Details
.grammar_hash ⇒ String
Returns hash of XML greammar
20 21 22 23 24 25 |
# File 'lib/relaton_cen.rb', line 20 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 RelatonCen::VERSION + RelatonIsoBib::VERSION + RelatonBib::VERSION # grammars end |