Module: RTM::Navigation::Association

Defined in:
lib/rtm/navigation/association/players.rb

Instance Method Summary collapse

Instance Method Details

#players(type = :any) ⇒ Object

Returns all players of roles in this association.

The optional identifier specifies the type of the roles to be considered. The identifier may be a topic reference.

Multiple instances of the same topics are possible.

:call-seq:

players -> Array of Topics
players(identifier) -> Array of Topics


19
20
21
# File 'lib/rtm/navigation/association/players.rb', line 19

def players(type = :any)
  return roles(type).map{|r| r.player}
end