lib/yard/server/commands/display_file_command.rb in yard-0.6.3 vs lib/yard/server/commands/display_file_command.rb in yard-0.6.4

- old
+ new

@@ -1,7 +1,10 @@ module YARD module Server module Commands + # Displays a README or extra file. + # + # @todo Implement better support for detecting binary (image) filetypes class DisplayFileCommand < LibraryCommand def run ppath = library.source_path filename = File.cleanpath(File.join(library.source_path, path)) raise NotFoundError if !File.file?(filename) \ No newline at end of file