Hello,
I’m new to ruby. Could anyone please help to resolve the compilation
error as per below :
C:\Ruby\MyWork>ruby test1.rb
test1.rb:2:in block in <main>': uninitialized constant Object::Files (NameError) from test1.rb:2:in
foreach’
from test1.rb:2:in `’
Please see attach file as my ruby code.
Or see below code
dir = “C:\Calls”
puts Dir.foreach(dir) {|f| Files.ctime(f)}
I want to get change time of all the directory which is in mention
directory.
But getting “uninitialized constant Object” error.
Please help !!
Thanks in advance
Raju