Module: WeeklyCalendar::ViewHelpers
- Defined in:
- lib/weekly_calendar/view_helpers.rb
Instance Method Summary collapse
Instance Method Details
#week_calender(events, options = {}, &block) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/weekly_calendar/view_helpers.rb', line 4 def week_calender(events, ={}, &block) raise 'WeeklyCalendar requires a block to be passed in' unless block_given? opts = .reverse_merge! opts events ||= [] draw_calendar(events, , block) end |