module Micalender::ViewHelpers
Public Instance Methods
calendar(options={}, &block)
click to toggle source
# File lib/micalender/view_helpers.rb, line 3 def calendar(options={}, &block) raise 'calendar requires a block' unless block_given? Micalender::Calendar.new(self, options).render(&block) end
month_calendar(options={}, &block)
click to toggle source
# File lib/micalender/view_helpers.rb, line 8 def month_calendar(options={}, &block) raise 'month_calendar requires a block' unless block_given? Micalender::MonthCalendar.new(self, options).render(&block) end
week_calendar(options={}, &block)
click to toggle source
# File lib/micalender/view_helpers.rb, line 13 def week_calendar(options={}, &block) raise 'week_calendar requires a block' unless block_given? Micalender::WeekCalendar.new(self, options).render(&block) end