Posted By

stancell on 06/02/08


Tagged

yaml


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

crazylion
sergeizen
webstic


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.