I thought I was grasping the concepts of yaml, but I am growing confused
as
I am messing with it doing some example coding with it. Here is a gist
of my
code.
It works fine until it goes to load the main.yaml file at which point I
get
the following error.
yaml1.rb:37:in <main>': undefined method width’ for
#String:0x000001010fb9d0 (NoMethodError)
It seems like it should work. Am I just missing something or am I
approaching it wrong.
Okay, that is what I get for refactoring code. I totally missed that. I
was
trying to make the code a little prettier than it was and completely
disregarded YAML.dump. That makes sense