Module: RakeTasks::Dependency
Instance Method Summary collapse
Instance Method Details
#loaded?(constant, requirement) ⇒ Boolean
5 6 7 8 9 10 11 12 13 14 |
# File 'lib/rake_tasks/dependency.rb', line 5 def loaded?(constant, requirement) if ::Kernel::const_defined?(constant) return true else puts "<#{constant}> is not defined.\n" puts "Please `require '#{requirement}'` in your application " + "before loading the corresponding task." return false end end |