class Nonsensor::DateSeries

Public Class Methods

new(start: Date.today, step: 1) click to toggle source
# File lib/nonsensor/date_series.rb, line 6
def initialize(start: Date.today, step: 1)
  @date = start
  @step = step
end

Public Instance Methods

next!() click to toggle source
# File lib/nonsensor/date_series.rb, line 11
def next!
  date = @date
  @date += @step
  date
end