Sha256: c38743643ac6237cccde84804d7f6387fd3ed67ccfff1455e0847bb93e42f912

Contents?: true

Size: 207 Bytes

Versions: 3

Compression:

Stored size: 207 Bytes

Contents

module SimpleCalendar
  class MonthCalendar < SimpleCalendar::Calendar
    def date_range
      (start_date.beginning_of_month.beginning_of_week..start_date.end_of_month.end_of_week).to_a
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
simple_calendar-2.4.1 lib/simple_calendar/month_calendar.rb
simple_calendar-2.4.0 lib/simple_calendar/month_calendar.rb
simple_calendar-2.3.0 lib/simple_calendar/month_calendar.rb