> I heard in java there is some get property which picks values after '='
> and so on.
> Let me know if there is any ruby equivalent to this or any other method
> to get this done.
>

Another way.
Modify as necessary.

source = <<EOF
url =  "http://localhost"
emailid = "User / htmdec.com"
password= "12345678"
browser="iexplore"
EOF

require 'shellwords'
include Shellwords
h = Hash[*(shellwords(source.gsub("="," ")))]

# {"url"=>"http://localhost", "emailid"=>"User / htmdec.com",
"browser"=>"iexplore", "password"=>"12345678"}


Harry
-- 
A Look into Japanese Ruby List in English
http://www.kakueki.com/ruby/list.html