Class: ASpaceImport::XML::DOM::Config

Inherits:
Object
  • Object
show all
Defined in:
backend/app/converters/lib/xml_dom.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



159
160
161
# File 'backend/app/converters/lib/xml_dom.rb', line 159

def initialize
  @doc_frag_nodes = []
end

Instance Attribute Details

#doc_frag_nodesObject

Returns the value of attribute doc_frag_nodes



157
158
159
# File 'backend/app/converters/lib/xml_dom.rb', line 157

def doc_frag_nodes
  @doc_frag_nodes
end

#mappingsObject (readonly)

Returns the value of attribute mappings



156
157
158
# File 'backend/app/converters/lib/xml_dom.rb', line 156

def mappings
  @mappings
end

Instance Method Details

#[](arg) ⇒ Object



167
168
169
# File 'backend/app/converters/lib/xml_dom.rb', line 167

def [](arg)
  @mappings[arg]
end

#[]=(arg, val) ⇒ Object



171
172
173
174
# File 'backend/app/converters/lib/xml_dom.rb', line 171

def []=(arg, val)
  @mappings ||= {}
  @mappings[arg] = val
end

#init_map(hash) ⇒ Object



163
164
165
# File 'backend/app/converters/lib/xml_dom.rb', line 163

def init_map(hash)
  @mappings = hash
end