Module: RTM::Navigation::Association

Defined in:
rtm/spec/rtm/navigation/association_spec.rb,
rtm/lib/rtm/navigation/association/players.rb,
rtm/spec/rtm/navigation/association/players_spec.rb

Instance Method Summary

Instance Method Details

- (Object) players(type = :any)

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 'rtm/lib/rtm/navigation/association/players.rb', line 19

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