Sha256: 9521388edc2e432f750b51930cadbe1912860605ebecbcc3312afa4c3ac37243
Contents?: true
Size: 782 Bytes
Versions: 5
Compression:
Stored size: 782 Bytes
Contents
# Copyright: Copyright 2009 Topic Maps Lab, University of Leipzig. # License: Apache License, Version 2.0 module RTM module Navigation module Topic # Returns all indicators (subject identifiers) of this Topic. # # The result may be empty. # # :call-seq: # indicators -> Array of Strings # def indicators getSubjectIdentifiers.map{|locator| locator.value} end # Returns one indicator (subject identifier) of this Topic or nil # if this Topic has no indicator. # # :call-seq: # indicator -> String or nil # def indicator return indicators.empty? ? nil : indicators.sort.first # TODO Which sorting algorithm? end end end end
Version data entries
5 entries across 5 versions & 1 rubygems