1. #This is a piece of code that belongs to a program under development
  2. print "Extension: "
  3. ext = gets.chomp
  4.  
  5. puts Dir.glob ['*.#{ext}'] #This part is missing something
  6. =begin
  7. Although the program knows it's value it won't do what it's supposed to.
  8. It's suppose to display files of given extension on current directory.
  9. txt for text files
  10. =end
  11. else puts "Unknown command: #{command}"
  12. end