From: tjnogueira@... Date: 2009-02-04T21:41:51+09:00 Subject: Re: RProperties 0.0.1 Released You are completly right Peter! But my intention to make rproperties is to mantain the java way and , with this, convence more java users here in brazil to migrate to ruby, and migrating , they will be completly free to use the ruby ways and discover this wonderfull language , that i prefer too! Peter , here in Brazil i am finding a hard resistence with the java users to migrate to Ruby. I guess that in a group of 100 developers here , 10 are tendencious to migrate to ruby,15 says that will take a look but always says : tomorrow , tomorrow i'll see some and 75 just will change when ruby pays more that java. - tiago On Wed, 4 Feb 2009 21:21:15 +0900, peter@rubyrailways.com wrote: >> Hello everybody! >> The first release of RProperties is on the RubyForge now on >> http://rubyforge.org/projects/rproperties/ ! > > Great! But I don't really get the advantage of RProperties over built in > yaml+hash for example (or yaml+struct, or... whatever): > > store: > > props = {:site_name => "My Crazy Blog About Ruby", > :site_author => "Barack Obama", > :author_email => "barack@whitehouse.org"} > open('my_props.yml','w') {|f| f.write props.to_yaml} > > load: > > rp = YAML::load(open('my_props.yml')) > puts rp[:site_name] > puts rp[:site_author] > etc. > > the yaml file almost looks like the java properties file: > > --- > :site_name: " My Crazy Blog About Ruby" > :site_author: Barack Obama > :author_email: barack@whitehouse.org > > Peter > ___ > http://www.rubyrailways.com > http://scrubyt.org