Class: Icalendar::RRule::Weekday
Instance Method Summary collapse
-
#initialize(day, position) ⇒ Weekday
constructor
A new instance of Weekday.
- #to_s ⇒ Object
Constructor Details
#initialize(day, position) ⇒ Weekday
Returns a new instance of Weekday.
28 29 30 |
# File 'lib/icalendar/rrule.rb', line 28 def initialize(day, position) @day, @position = day, position end |
Instance Method Details
#to_s ⇒ Object
32 33 34 |
# File 'lib/icalendar/rrule.rb', line 32 def to_s "#{@position}#{@day}" end |