Module: Tempora::HasDays

Included in:
TimePeriod
Defined in:
lib/tempora/has_days.rb

Instance Method Summary collapse

Instance Method Details

#daysObject



3
4
5
# File 'lib/tempora/has_days.rb', line 3

def days
  range.to_a
end

#each_day(&block) ⇒ Object



7
8
9
# File 'lib/tempora/has_days.rb', line 7

def each_day(&block)
  range.each(&block)
end