Some class methods, such as exists
(for classes File
and Dir
) and iterator
have been deprecated in favour
of exist
and block_given
respectively.
File.exists?(some_path)
Dir.exists?(some_path)
if iterator?
yield
end
File.exist?(some_path)
Dir.exist?(some_path)
if block_given?
yield
end