Please use
    @settings ||= (YAML.load_file(@file) || {})