Sha256: 692ea005c7f3bade782ac574b31e80c1adfffcd2184716d19df4a05961da2c66
Contents?: true
Size: 640 Bytes
Versions: 1
Compression:
Stored size: 640 Bytes
Contents
module Asposetasksjava module RemoveCalendarException def initialize() data_dir = File.dirname(File.dirname(File.dirname(File.dirname(__FILE__)))) + '/data/' # Instantiate project object project = Rjb::import('com.aspose.tasks.Project').new(data_dir + 'test_tasks.mpp') # Remove an exception cal = project.getCalendars().toList().get(0) if cal.getExceptions().getCount() > 1 exc = cal.getExceptions().toList().get(0) cal.getExceptions().remove(exc) puts "Removed calendar exception." end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
asposetasksjava-0.0.1 | lib/asposetasksjava/Calendars/removecalendarexception.rb |