Class: OrigenTesters::ATP::Processors::AppendTo
Overview
Appends the given node to the node with the given ID, if it exists somewhere within the given parent node
Instance Method Summary
collapse
#add_global_flag, #clean_flag, #extract_globals, #extract_volatiles, #global_flag?, #global_flags, #process, #process_all, #volatile?, #volatile_flags
Instance Method Details
#handler_missing(node) ⇒ Object
17
18
19
20
21
22
23
24
|
# File 'lib/origen_testers/atp/processors/append_to.rb', line 17
def handler_missing(node)
if node.id == @id_of_to_be_appended_to
@found = true
node.updated(nil, node.children + [@to_be_appended])
else
node.updated(nil, process_all(node.children))
end
end
|
#run(parent, node, id, options = {}) ⇒ Object
6
7
8
9
10
11
|
# File 'lib/origen_testers/atp/processors/append_to.rb', line 6
def run(parent, node, id, options = {})
@to_be_appended = node
@id_of_to_be_appended_to = id
@found = false
process(parent)
end
|
#succeeded? ⇒ Boolean
13
14
15
|
# File 'lib/origen_testers/atp/processors/append_to.rb', line 13
def succeeded?
@found
end
|