class CompTree::RedefinitionError

An attempt was made to redefine a node.

If you wish to only replace the function, set

driver.nodes[name].function = lambda { ... }