Class: Relaton::Omg::Processor

Inherits:
Core::Processor
  • Object
show all
Defined in:
lib/relaton/omg/processor.rb

Instance Method Summary collapse

Constructor Details

#initializeProcessor

rubocop:disable Lint/MissingSuper



6
7
8
9
10
11
# File 'lib/relaton/omg/processor.rb', line 6

def initialize # rubocop:disable Lint/MissingSuper
  @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_hashObject



28
29
30
31
# File 'lib/relaton/omg/processor.rb', line 28

def grammar_hash
  require_relative "../omg"
  @grammar_hash ||= Omg.grammar_hash
end