Can I somehow use this
settings = { \'user1\' => { \'path\' => \'/\',\'days\' => \'5\' }, \'user2\' => { \'path\' => \'/tmp/\',\'days\
A really simple one is to use eval.
config.txt
{ 'user1' => { 'path' => '/','days' => '5' }, 'user2' => { 'path' => '/tmp/','days' => '3' } }
program.rb
configuration = eval(File.read("./config.txt")) puts configuration['user1']