lib/double_entry/reporting/month_range.rb
# Obtain a sequence of MonthRanges from the given start to the current
# month.
#
# @option options :from [Time] Time of the first in the returned sequence
#   of MonthRanges.
# @return [Array<MonthRange>]
Obtain a sequence of MonthRanges from the given start to the current
month.
Obtain a sequence of MonthRanges from the given start to the current month .
def reportable_months(options = {})
          month = options[:from] ? from_time(options[:from]) : earliest_month
          last = current
          [month].tap do |months|
            while month != last
              month = month.next
              months << month
            end
          end
        end
def reportable_months ( options = { } ) month = options [ :from ] ? from_time ( options [ :from ] ) : earliest_month last = current [ month ] . tap do | months | while month != last month = month . next months << month end end end
Obtain a sequence of MonthRanges from the given start to the current
month.
Obtain a sequence of MonthRanges from the given start to the current month .
None
Array<MonthRange>
options
:from  Time of the first in the returned sequence of MonthRanges.
: from Time of the first in the returned sequence of MonthRanges .