D
dare ruby
Dear friends,
I have created a string buffer.
I have read character by character from buffer using a method and stored
in a string object
like,
@test = String.new
The method iteration process continues till @flag=1. So for every
iteration of method a string object(@test) is returned from the method.
Now i want to move this returned string object @test into a hash. How
can i move string objects into hash.
I need to store all strings that are returned(@test) till flag=1 in a
hash. I dont want to use an array to store the values.
Please help me to do this process.
Thanks in advance
Regards,
Jose Martin
I have created a string buffer.
I have read character by character from buffer using a method and stored
in a string object
like,
@test = String.new
The method iteration process continues till @flag=1. So for every
iteration of method a string object(@test) is returned from the method.
Now i want to move this returned string object @test into a hash. How
can i move string objects into hash.
I need to store all strings that are returned(@test) till flag=1 in a
hash. I dont want to use an array to store the values.
Please help me to do this process.
Thanks in advance
Regards,
Jose Martin