Creating a Task Link in Ruby

To create a Task Link using Aspose.Tasks Java for Ruby, simply invoke CreateTaskLink module. Here you can see example code.

project = Rjb::import('com.aspose.tasks.Project').new
pred = project.getRootTask().getChildren().add("Task 1")
succ = project.getRootTask().getChildren().add("Task 2")
link = project.getTaskLinks().add(pred, succ)
puts "Created task link."

Download Running Code

Download Creating a Task Link (Aspose.Tasks) from any of the below mentioned social coding sites: