Module: RakeCommander::Patcher::Application::TopLevelResume

Includes:
Base
Defined in:
lib/rake-commander/patcher/application/top_level_resume.rb

Defined Under Namespace

Modules: ClassMethods, Patch

Class Method Summary collapse

Class Method Details

.patch_prepend(_invoked_by) ⇒ Object



12
13
14
15
16
# File 'lib/rake-commander/patcher/application/top_level_resume.rb', line 12

def patch_prepend(_invoked_by)
  return unless target_defined?

  Rake::Application.prepend Patch
end

.targetObject



8
9
10
# File 'lib/rake-commander/patcher/application/top_level_resume.rb', line 8

def target
  Rake::Application
end

.target_defined?Boolean

Returns:

  • (Boolean)


18
19
20
21
22
23
# File 'lib/rake-commander/patcher/application/top_level_resume.rb', line 18

def target_defined?
  return true if defined?(target)

  puts "Warning (#{self}): undefined target #{target}"
  false
end