Sha256: a4ead570e961d504f27d451ddab289a885e8a3bbe5402a63471b4a27a81b7be1

Contents?: true

Size: 206 Bytes

Versions: 2

Compression:

Stored size: 206 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

2 entries across 2 versions & 1 rubygems

Version Path
simple_calendar-2.4.3 lib/simple_calendar/month_calendar.rb
simple_calendar-2.4.2 lib/simple_calendar/month_calendar.rb