D
Derril Lucci
Greetings all,
I recently posted about how to import a configuration file. I got
this as a reply:
load File.join(ENV['HOME'], '.myconfrc')
file ~/.myconfrc:
$interval = 15
But when I go to run it, I get this:
test.rb:3: unterminated string meets end of file
test.rb:3: syntax error, unexpected tSTRING_END, expecting
tSTRING_CONTENT or tREGEXP_END or tSTRING_DBEG or tSTRING_DVAR
Anything help would be appreciated. Also, the configuration file has
some variables in it. How would I access those variables?
Cheers,
dlucci
I recently posted about how to import a configuration file. I got
this as a reply:
load File.join(ENV['HOME'], '.myconfrc')
file ~/.myconfrc:
$interval = 15
But when I go to run it, I get this:
test.rb:3: unterminated string meets end of file
test.rb:3: syntax error, unexpected tSTRING_END, expecting
tSTRING_CONTENT or tREGEXP_END or tSTRING_DBEG or tSTRING_DVAR
Anything help would be appreciated. Also, the configuration file has
some variables in it. How would I access those variables?
Cheers,
dlucci