Separate out YAML from YAML in ruby