Method: Rake::FileCreationTask#needed?

Defined in:
lib/rake/file_creation_task.rb

#needed?Boolean

Is this file task needed? Yes if it doesn’t exist.

Returns:

  • (Boolean)


13
14
15
# File 'lib/rake/file_creation_task.rb', line 13

def needed?
  ! File.exist?(name)
end