Path: | lib/more/facets/yaml.rb |
Last Update: | Thu Jun 24 13:18:25 +0000 2010 |
YAML related extenstions.
The Kernel method yaml is a shortcut to YAML::load.
yaml %{ a: 1 b: 2 }
produes
{:a=>1, :b=>2}
File.yaml? provides a way to check if a file is a YAML formatted file.
File.yaml?('project.yaml') #=> true File.yaml?('project.xml') #=> false
Copyright (c) 2006 Thomas Sawyer
Ruby License
This module is free software. You may use, modify, and/or redistribute this software under the same terms as Ruby.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.