# Repeated parameter in the INI file

**URL:** <https://www.ruby-forum.com/t/repeated-parameter-in-the-ini-file/136467>\
**Category:** Ruby\
**Created:** [May 2, 2008, 12:30pm UTC](https://www.ruby-forum.com/t/repeated-parameter-in-the-ini-file/136467 "2008-05-02T12:30:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Deepu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/41988e/32.png) [@Deepu](https://www.ruby-forum.com/u/Deepu)\
**Post date:** [May 2, 2008, 12:30pm UTC](https://www.ruby-forum.com/t/repeated-parameter-in-the-ini-file/136467/1 "2008-05-02T12:30:55Z")

</div>

Hi all,

I, trying to make a configuration file system with ruby.  
In the configuration file the same parameter may appear multiple  
times. This is allowed and how to handle such a situation with ini  
library.  
The present INI library i’m using returns the output as a hash. But in  
a hash there can be no duplication of keys.

my idea is to support ini files as given below:

[conf1]  
data=p1  
time=12:23:22  
data=p2  
time=23:12:23  
…  
.  
.  
.  
Thanks in advance,  
Deepu D

---

<div class="post-metadata">

**Author:** ![Deepu](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/41988e/32.png) [@Deepu](https://www.ruby-forum.com/u/Deepu)\
**Post date:** [May 5, 2008, 10:02am UTC](https://www.ruby-forum.com/t/repeated-parameter-in-the-ini-file/136467/2 "2008-05-05T10:02:22Z")

</div>

2008/5/2 Deepu [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> my idea is to support ini files as given below:  
> Thanks in advance,  
> Deepu D

Now, what was the question again? Was there any? I cannot find one.

robert
