Message:
Command failed: ./companies.rb:64:in `block in <main>': undefined local variable or method `companies_info' for main:Object (NameError)
from ./companies.rb:61:in `each'
from ./companies.rb:61:in `<main>'
Details:
killed: false
code: 1
signal: null
stdout:
stderr: ./companies.rb:64:in `block in <main>': undefined local variable or method `companies_info' for main:Object (NameError)
from ./companies.rb:61:in `each'
from ./companies.rb:61:in `<main>'
If this because companies_info is still being defined with a $?
if File.exists? ('../data/company_infos.yml')
$companies_info = YAML::load_file('../data/company_infos.yml')
else
$companies_info = Hash.new(0)
end
I'm getting the errors:
If this because companies_info is still being defined with a $?