Parent

Methods

Class/Module Index [+]

Quicksearch

Ruote::ParticipantEntry

A helper class, for ParticipantList#list, which returns a list (order matters) of ParticipantEntry instances.

See Engine#participant_list

Attributes

classname[RW]
options[RW]
regex[RW]

Public Class Methods

new(a) click to toggle source
# File lib/ruote/part/participant_list.rb, line 318
def initialize (a)
  @regex = a.first
  if a.last.is_a?(Array)
    @classname = a.last.first
    @options = a.last.last
  else
    @classname = a.last
    @options = nil
  end
end

Public Instance Methods

to_a() click to toggle source
# File lib/ruote/part/participant_list.rb, line 329
def to_a
  @classname[0, 5] == 'inpa_' ?
    [ @regex, @classname ] :
    [ @regex, [ @classname, @options ] ]
end
to_s() click to toggle source
# File lib/ruote/part/participant_list.rb, line 335
def to_s
  "/#{@regex}/ ==> #{@classname} #{@opts.inspect}"
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.