# File 'lib/better_errors.rb', line 99defself.editor=(editor)POSSIBLE_EDITOR_PRESETS.eachdo|config|ifconfig[:symbols].include?(editor)returnself.editor=config[:url]endendifeditor.is_a?Stringself.editor=proc{|file,line|editor%{file:URI.encode_www_form_component(file),line:line}}elseifeditor.respond_to?:call@editor=editorelseraiseTypeError,"Expected editor to be a valid editor key, a format string or a callable."endendend