I'm trying to require all the files in a folder. I have the following.
Dir.foreach File.expand_path("app/models") do |file|
require file unless file === /^\./
end
However, it's failing. When I open up a ruby console, I try the following:
"." === /^\./
and it evaluates to false. Why won't it match?