method

rm

ruby latest stable - Class: Bundler::FileUtils

Method not available on this version

This method is only available on newer versions. The first available version (v2_6_3) is shown here.

rm(list, force: nil, noop: nil, verbose: nil)
public

Remove file(s) specified in list. This method cannot remove directories. All StandardErrors are ignored when the :force option is set.

Bundler::FileUtils.rm %w( junk.txt dust.txt )
Bundler::FileUtils.rm Dir.glob('*.so')
Bundler::FileUtils.rm 'NotExistFile', :force => true   # never raises exception