lib/taskjuggler/Query.rb in taskjuggler-3.6.0 vs lib/taskjuggler/Query.rb in taskjuggler-3.7.1
- old
+ new
@@ -79,11 +79,11 @@
end
@startIdx = @project.dateToIdx(@start)
end
def startIdx=(idx)
- if idx.is_a?(Fixnum)
+ if idx.is_a?(Integer)
@startIdx = idx
@start = @project.idxToDate(idx)
else
raise "Unsupported type #{idx.class}"
end
@@ -97,11 +97,11 @@
end
@endIdx = @project.dateToIdx(@end)
end
def endIdx=(idx)
- if idx.is_a?(Fixnum)
+ if idx.is_a?(Integer)
@endIdx = idx
@end = @project.idxToDate(idx)
else
raise "Unsupported type #{idx.class}"
end
@@ -237,10 +237,10 @@
# Return the result of the Query as String. The result may be nil.
def to_s
@attr ? @attr.to_s(self) : (@rti ? @rti.to_s : (@string || ''))
end
- # Return the result of the Query as Fixnum or Float. The result may be
+ # Return the result of the Query as Integer or Float. The result may be
# nil.
def to_num
@attr ? @attr.to_num : @numerical
end