Try Ruby is a interactive shell that quickly and whimsically teaches the Ruby programming language. Originally _why's idea, it has been recreated from the ground up by Rubyists who have a passion for Ruby and for teaching their fellow (wo)man how to program.
"strip removes extra spaces around the name. Just in case."
This doesn't jibe with the code. Check it:
def load_comics( path ) comics = {} File.foreach(path) do |line| name, url = line.split(': ') comics[name] = url.strip end comics end
Perhaps it should be:
"strip removes extra spaces around the url. Just in case."