class Toji::Calendar::DateRow
Attributes
date[R]
kakes[R]
kojis[R]
Public Class Methods
new(date)
click to toggle source
# File lib/toji/calendar/date_row.rb, line 8 def initialize(date) @date = date @kojis = [] @kakes = [] end
Public Instance Methods
<<(schedule)
click to toggle source
# File lib/toji/calendar/date_row.rb, line 14 def <<(schedule) case schedule.rice_type when :koji index = schedule.step_weights.first[:index] @kojis[index] ||= DateColumn.new @kojis[index] << schedule when :kake index = schedule.step_weights.first[:index] @kakes[index] ||= DateColumn.new @kakes[index] << schedule end end
Also aliased as: add