TwP / inifile

Native Ruby package for reading and writing INI files
http://codeforpeople.rubyforge.org/inifile
95 stars 47 forks source link

for loop in .ini file #46

Closed mahtaparsa closed 6 years ago

mahtaparsa commented 6 years ago

Hi everybody, Is it possible to define a for loop in a .ini file? For example we have for loop in C or Python,... Can we define such loops in .ini file?

letarg0 commented 6 years ago

Yes, myini.each_section do |section_desc| change section_desc to 'my_section'

if You dont know what is inside object just print it p myini

hussaintamboli commented 6 years ago

Can you put an example? It's not clear from this discussion. Thanks.

mahtaparsa commented 6 years ago

The problem have been solved. Thanks for your replies.