module Rake::TaskManager

def tasks_in_scope(scope)

sub-scopes).
List of all the tasks defined in the given scope (and its
def tasks_in_scope(scope)
  prefix = scope.path
  tasks.select { |t|
    /^#{prefix}:/ =~ t.name
  }
end