Class: File

Inherits:
Object
  • Object
show all
Defined in:
lib/code_spec/core_ext.rb

Class Method Summary collapse

Class Method Details

.blank?(file_name) ⇒ Boolean

Returns:

  • (Boolean)


2
3
4
# File 'lib/code_spec/core_ext.rb', line 2

def self.blank? file_name
  !(File.file?(file_name) || File.zero?(file_name))
end