tags:

views:

36

answers:

1

I want to read a YML document, filter it by modifying some nodes in memory, and then spit it back out with an emitter. The problem is that YAML::Node appears to be designed to be read-only. Is there a way to replace a node's value (with a scalar in this case) that I'm missing?

A: 

What I do with YAML is I read the file and then put the YAML data into my down data structure. Maybe not what you're looking for, but it's one way.

Jesse J
Mike Mueller
Sorry, in that case I don't know.
Jesse J