Yesterday, I was working on a project that had to parse a JSON file. I’d named the
file config.yml
instead of config.json
by mistake, so when it came to filling
in this function below, autopilot took over and did this:
def config
+ YAML.load(File.read('config.yml'))
end
Fast-forward to today morning, as I’m revie