def load_comics(path)
comics={}
File.foreach(path) do |line|
name, url = line.split(': ')
comics[name] = url.strip
end
comics #<<< THIS LINE
end
I’m used to PHP, what does comics do? I’m a bit confused (I’m doing the tutorials on tryruby.org and it didn’t explain that section).
Its the return value of the method.