File: yaml.rb

# yaml.rb

Path: | lib/more/facets/yaml.rb
Last Update: | Tue Aug 10 17:25:06 -0600 2010

# YAML Extensions

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

## Authors

- Thomas Sawyer

## Copyright

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.

### Required files

yaml

[Validate]