Advertisement
Guest User

Ruby Error

a guest
Jan 31st, 2014
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.39 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement