4 class Tries < PollCondition
8 if self.times.kind_of?(Integer)
9 self.times = [self.times, self.times]
12 @timeline = Timeline.new(self.times[1])
17 valid &= complain("You must specify the 'times' attribute for :tries") if self.times.nil?
23 if @timeline.select { |x| x }.size >= self.times.first