From: tjnogueira@... Date: 2009-02-05T00:44:12+09:00 Subject: Re: RProperties 0.0.1 Released Dominik, you said: "... By simply adding "" around the values, you could even use this kind of format with, e.g., instance_eval and provide an interface like the following: Properties.site_name to get the value of site_name, which is way nicer than get_p('site_name') ..." And i was think thats can be a good way. - tiago On Thu, 5 Feb 2009 00:38:25 +0900, wrote: > Dominik, > I just put the ideas on the air and i'm open to sugestions etc... > This is the first release and i know that i have too much work to do and > if > somebody > have other ideas please , lets talk! > - tiago > > On Wed, 4 Feb 2009 23:33:21 +0900, Dominik Honnef > wrote: >>> 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! >> >> I doubt that people coming from Java will discover the beauty of Ruby >> if they are able to use things like RProperties. And in my opinion, >> something like #get_p(...) is not Ruby-like at all. >> >> The proper way would be to actually show them how it is done in Ruby's >> way. >> >>> site_name = My Crazy Blog About Ruby >>> site_author = Barack Obama >>> author_email = barack@whitehouse.org >> >> By simply adding "" around the values, you could even use this kind of >> format with, e.g., instance_eval and provide an interface like the >> following: >> >> Properties.site_name >> >> to get the value of site_name, which is way nicer than > get_p('site_name') >>