lib/double_entry/reporting/week_range.rb
# Obtain a sequence of WeekRanges from the given start to the current
# week.
#
# @option options :from [Time] Time of the first in the returned sequence
#   of WeekRanges.
# @return [Array<WeekRange>]
Obtain a sequence of WeekRanges from the given start to the current
week.
Obtain a sequence of WeekRanges from the given start to the current week .
def reportable_weeks(options = {})
          week = options[:from] ? from_time(options[:from]) : earliest_week
          last_in_sequence = current
          [week].tap do |weeks|
            while week != last_in_sequence
              week = week.next
              weeks << week
            end
          end
        end
def reportable_weeks ( options = { } ) week = options [ :from ] ? from_time ( options [ :from ] ) : earliest_week last_in_sequence = current [ week ] . tap do | weeks | while week != last_in_sequence week = week . next weeks << week end end end
Obtain a sequence of WeekRanges from the given start to the current
week.
Obtain a sequence of WeekRanges from the given start to the current week .
None
Array<WeekRange>
options
:from  Time of the first in the returned sequence of WeekRanges.
: from Time of the first in the returned sequence of WeekRanges .