The following issue has been SUBMITTED. ====================================================================== http://bugs.librdf.org/mantis/view.php?id=292 ====================================================================== Reported By: dulanov Assigned To: ====================================================================== Project: Redland Ruby Binding Issue ID: 292 Category: Reproducibility: always Severity: major Priority: normal Status: new ====================================================================== Date Submitted: 2009-01-06 20:32 Last Modified: 2009-01-06 20:32 ====================================================================== Summary: Method Redland::Resource.type? always return true Description: def type?(type) self.model.find(self,TYPE,type) != nil end
self.model.find withoud a block returns at least [], and [] != nil => method always returns true should be, for an example def type?(type) self.model.find(self,TYPE,type).size != 0 end ====================================================================== Issue History Date Modified Username Field Change ====================================================================== 2009-01-06 20:32 dulanov New Issue ====================================================================== _______________________________________________ redland-dev mailing list [email protected] http://lists.librdf.org/mailman/listinfo/redland-dev
