Method: Wads::Node#remove_output
- Defined in:
- lib/wads/data_structures.rb
#remove_output(name) ⇒ Object
343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 |
# File 'lib/wads/data_structures.rb', line 343 def remove_output(name) output_to_delete = nil @outputs.each do |output| if output.is_a? Edge output_node = output.destination if output_node.id == name output_to_delete = output end elsif output.id == name output_to_delete = output end end if output_to_delete @outputs.delete(output_to_delete) end end |