class Icalendar::RRule::Weekday

Public Class Methods

new(day, position) click to toggle source
# File lib/icalendar/rrule.rb, line 28
def initialize(day, position)
  @day, @position = day, position
  @last = false
end

Public Instance Methods

to_s() click to toggle source
# File lib/icalendar/rrule.rb, line 33
def to_s
  "#{@position}#{@day}#{ "," unless @last }"
end
you_are_last() click to toggle source
# File lib/icalendar/rrule.rb, line 37
def you_are_last()
  @last = true
end