Sha256: ffff17b4e4699ab61f000189b122b6cd784f376f1d45b3a7a2edba13586cbc76
Contents?: true
Size: 740 Bytes
Versions: 5
Compression:
Stored size: 740 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 subject locators of this Topic. # # The result may be empty. # # :call-seq: # locators -> Array of Strings # def locators getSubjectLocators.map{|locator| locator.value} end # Returns one subject locator of this Topic or nil # if this Topic has no subject locator. # # :call-seq: # locator -> String or nil # def locator return locators.empty? ? nil : locators.sort.first # TODO Which sorting algorithm? end end end end
Version data entries
5 entries across 5 versions & 1 rubygems