Class: Relaton::Omg::Processor
Instance Attribute Summary
#datasets, #defaultprefix, #idtype, #prefix, #short
Instance Method Summary
collapse
#fetch_data, #threads
Constructor Details
rubocop:disable Lint/MissingSuper
6
7
8
9
10
11
|
# File 'lib/relaton/omg/processor.rb', line 6
def initialize @short = :relaton_omg
@prefix = "OMG"
@defaultprefix = /^OMG /
@idtype = "OMG"
end
|
Instance Method Details
#from_xml(xml) ⇒ Object
18
19
20
21
|
# File 'lib/relaton/omg/processor.rb', line 18
def from_xml(xml)
require_relative "../omg"
Bibitem.from_xml xml
end
|
#from_yaml(yaml) ⇒ Object
23
24
25
26
|
# File 'lib/relaton/omg/processor.rb', line 23
def from_yaml(yaml)
require_relative "../omg"
Item.from_yaml yaml
end
|
#get(code, date, opts) ⇒ Object
13
14
15
16
|
# File 'lib/relaton/omg/processor.rb', line 13
def get(code, date, opts)
require_relative "../omg"
Bibliography.get(code, date, opts)
end
|
#grammar_hash ⇒ Object
28
29
30
31
|
# File 'lib/relaton/omg/processor.rb', line 28
def grammar_hash
require_relative "../omg"
@grammar_hash ||= Omg.grammar_hash
end
|