Module: RelatonGb
- Defined in:
- lib/relaton_gb.rb,
lib/relaton_gb/hit.rb,
lib/relaton_gb/version.rb,
lib/relaton_gb/scrapper.rb,
lib/relaton_gb/processor.rb,
lib/relaton_gb/t_scrapper.rb,
lib/relaton_gb/xml_parser.rb,
lib/relaton_gb/gb_scrapper.rb,
lib/relaton_gb/sec_scrapper.rb,
lib/relaton_gb/hash_converter.rb,
lib/relaton_gb/hit_collection.rb,
lib/relaton_gb/gb_bibliography.rb,
lib/relaton_gb/gb_standard_type.rb,
lib/relaton_gb/gb_bibliographic_item.rb,
lib/relaton_gb/gb_technical_committee.rb
Overview
GB bib module.
Defined Under Namespace
Modules: GbScrapper, Scrapper, SecScrapper, TScrapper Classes: GbBibliographicItem, GbBibliography, GbStandardType, GbTechnicalCommittee, HashConverter, Hit, HitCollection, Processor, XMLParser
Constant Summary collapse
- VERSION =
"1.14.0"
Class Method Summary collapse
-
.grammar_hash ⇒ String
Returns hash of XML reammar.
Class Method Details
.grammar_hash ⇒ String
Returns hash of XML reammar
16 17 18 19 20 21 |
# File 'lib/relaton_gb.rb', line 16 def self.grammar_hash gem_path = File. "..", __dir__ grammars_path = File.join gem_path, "grammars", "*" grammars = Dir[grammars_path].sort.map { |gp| File.read gp }.join Digest::MD5.hexdigest grammars end |