We Recommend

Beginning Ruby: From Novice to Professional Beginning Ruby: From Novice to Professional
Beginning Ruby is a thoroughly contemporary guide for every type of reader wanting to learn Ruby, from novice programmers to web developers to Ruby newcomers. It starts by explaining the principles behind object-oriented programming and within a few chapters builds toward creating a genuine Ruby application.


Posted By

stancell on 06/02/08


Tagged

yaml


Versions (?)


Who likes this?

1 person has marked this snippet as a favorite

crazylion


Read YAML file


Published in: Ruby 


Read settings or similiar data from yaml file.

  1. require 'yaml'
  2. settings = YAML::load_file('filename.yaml')

Report this snippet 

Comments

RSS Icon Subscribe to comments
Posted By: lidaobing2099 on June 6, 2008

very good !!!

You need to login to post a comment.