Class: ASpaceImport::XML::DOM::Config
- Inherits:
-
Object
- Object
- ASpaceImport::XML::DOM::Config
- Defined in:
- backend/app/converters/lib/xml_dom.rb
Instance Attribute Summary collapse
-
#doc_frag_nodes ⇒ Object
Returns the value of attribute doc_frag_nodes.
-
#mappings ⇒ Object
readonly
Returns the value of attribute mappings.
Instance Method Summary collapse
-
#[](arg) ⇒ Object
-
#[]=(arg, val) ⇒ Object
-
#init_map(hash) ⇒ Object
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
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_nodes ⇒ Object
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 |
#mappings ⇒ Object (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 |