module FWToolkit::Rake
Public Class Methods
new_all(&block)
click to toggle source
# File lib/fwtoolkit/rake/tasks.rb, line 9 def self.new_all(&block) # Create a new rake task for each of the included/defined class that have 'Task' in their name and # belongs to FWToolkit::Rake module task_classes = self.constants.select do |c| constant = self.const_get(c) (Class === constant) && constant.name.include?('Task') end task_classes.each { |k| self.const_get(k).new(&block) } end