Skip to content

Instantly share code, notes, and snippets.

@jsvd
Created March 13, 2012 12:05
Show Gist options
  • Select an option

  • Save jsvd/2028407 to your computer and use it in GitHub Desktop.

Select an option

Save jsvd/2028407 to your computer and use it in GitHub Desktop.
irb
1.9.2p290 :030 > YAML::ENGINE.yamler= 'syck'; YAML.parse(File.open('/tmp/teste.yml'))
=> #<Syck::Map:0x000000024a4488>
1.9.2p290 :031 > YAML::ENGINE.yamler= 'psych'; YAML.parse(File.open('/tmp/teste.yml'))
Psych::SyntaxError: couldn't parse YAML at line 1 column 6
from /home/jsvd/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych.rb:148:in `parse'
from /home/jsvd/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych.rb:148:in `parse_stream'
from /home/jsvd/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/1.9.1/psych.rb:119:in `parse'
from (irb):31
from /home/jsvd/.rvm/rubies/ruby-1.9.2-p290/bin/irb:16:in `<main>'
1.9.2p290 :032 >
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment