Module: Relaton::Iho
- Defined in:
- lib/relaton/iho.rb,
lib/relaton/iho/ext.rb,
lib/relaton/iho/item.rb,
lib/relaton/iho/util.rb,
lib/relaton/iho/bibdata.rb,
lib/relaton/iho/bibitem.rb,
lib/relaton/iho/doctype.rb,
lib/relaton/iho/version.rb,
lib/relaton/iho/relation.rb,
lib/relaton/iho/item_base.rb,
lib/relaton/iho/item_data.rb,
lib/relaton/iho/processor.rb,
lib/relaton/iho/bibliography.rb,
lib/relaton/iho/docidentifier.rb,
lib/relaton/iho/comment_period.rb,
lib/relaton/iho/hash_parser_v1.rb,
lib/relaton/iho/structured_identifier.rb
Defined Under Namespace
Modules: Bibliography, HashParserV1, Util Classes: Bibdata, Bibitem, CommentPeriod, Docidentifier, Doctype, Error, Ext, Item, ItemBase, ItemData, Processor, Relation, StructuredIdentifier
Constant Summary collapse
- INDEXFILE =
"index-v2".freeze
- VERSION =
"2.0.3".freeze
Class Method Summary collapse
-
.grammar_hash ⇒ String
Returns hash of XML reammar.
Class Method Details
.grammar_hash ⇒ String
Returns hash of XML reammar
20 21 22 23 24 25 |
# File 'lib/relaton/iho.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 Relaton::Iho::VERSION + Relaton::Bib::VERSION # grammars end |