Hi,
I’m just starting to play around with YAML. I might use it instead of
XML. But, in IRB, I’m just trying the simplest, simplest thing. I’m just
trying to open the YAML file. And, I keep getting this “mapping” error.
I have no idea why.
irb(main):010:0> require ‘yaml’
=> false
irb(main):011:0> require ‘fileutils’
=> false
irb(main):012:0> Dir.chdir(“F:/workflows/grafix/images-BNA”)
=> 0
irb(main):013:0> file =
YAML.load_file(“F:/workflows/grafix/images-bna/suq115ab.yaml”)
Psych::SyntaxError: (F:/workflows/grafix/images-bna/suq115ab.yaml):
mapping values are not allowed in this context at line 3 column 11
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/2.1.0/psych.rb:370:in parse' from C:/RailsInstaller/Ruby2.1.0/lib/ruby/2.1.0/psych.rb:370:inparse_stream’
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/2.1.0/psych.rb:318:in parse' from C:/RailsInstaller/Ruby2.1.0/lib/ruby/2.1.0/psych.rb:245:inload’
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/2.1.0/psych.rb:464:in block in load_file' from C:/RailsInstaller/Ruby2.1.0/lib/ruby/2.1.0/psych.rb:464:inopen’
from C:/RailsInstaller/Ruby2.1.0/lib/ruby/2.1.0/psych.rb:464:in load_file' from (irb):13 from C:/RailsInstaller/Ruby2.1.0/bin/irb:11:in’