Module: RailsFancies::FancyWeeklyCalendarHelper

Defined in:
lib/rails_fancies/fancy_weekly_calendar_helper.rb

Defined Under Namespace

Classes: Calendar

Instance Method Summary collapse

Instance Method Details

#fancy_weekly_calendar(date = Date.today, options = {}, &block) ⇒ Object



4
5
6
# File 'lib/rails_fancies/fancy_weekly_calendar_helper.rb', line 4

def fancy_weekly_calendar(date = Date.today, options = {}, &block)
  Calendar.new(self, date, options, block).table
end

#slot_available?(date, slot_num) ⇒ Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/rails_fancies/fancy_weekly_calendar_helper.rb', line 7

def slot_available?(date, slot_num)
	Calendar.available?(date, slot_num)
end