Sha256: aefa0bf4348b3e4b45a994edccaa412926c0bba3da8a3871f750d409763d8a89
Contents?: true
Size: 752 Bytes
Versions: 4
Compression:
Stored size: 752 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 Associations in which this Topic plays a Role. # # The optional # identifier specifies the type of the Roles to be considered. # The identifier may be a topic reference. # # Multiple instances of the same Association are possible. # The result may be empty. # # :call-seq: # reverse_players -> Array of Associations # reverse_players(identifier) -> Array of Associations # def reverse_players(type = :any) roles_played(type).map{|r| r.parent} end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
rtm-0.3.1 | lib/rtm/navigation/topic/players.rb |
rtm-0.3.0 | lib/rtm/navigation/topic/players.rb |
rtm-0.2.1 | lib/rtm/navigation/topic/players.rb |
rtm-0.2 | lib/rtm/navigation/topic/players.rb |