J
John Maclean
This line shows all the files in the current dir.
This one -should- show all of thier filetypes...
Dir.foreach(".") {|x| File.ftype x }
=> nil
# what gives?
irb(main):023:0> Dir.foreach(".") {|x| File.ftype(x) }
=> nil
Dir.foreach(".") {|x| File.ftype(#{x})}
# I knew that this wouldn't work, but I tried it anyway
This one -should- show all of thier filetypes...
Dir.foreach(".") {|x| File.ftype x }
=> nil
# what gives?
irb(main):023:0> Dir.foreach(".") {|x| File.ftype(x) }
=> nil
Dir.foreach(".") {|x| File.ftype(#{x})}
# I knew that this wouldn't work, but I tried it anyway