What I’m used to:
YAML.to_s # “YAML”
What JRuby gives me:
YAML.to_s # “Psych”
Bug, feature, quirk?
Hal
What I’m used to:
YAML.to_s # “YAML”
What JRuby gives me:
YAML.to_s # “Psych”
Bug, feature, quirk?
Hal
It’s the same in MRI Ruby 1.9.3.
irb(main):001:0> require ‘yaml’
=> true
irb(main):002:0> YAML
=> Psych
Between 1.8 and 1.9 old YAML parser and generator was scrapped and
replaced with a new one called Psych. There is probably a line like
“YAML = Psych” somewhere in Ruby stdlib, for backwards compatibility.
– Matma R.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs