Sha256: 374560f3d870dbbe37cd6b6e992d407d521844895c47cb67b35622fa628e0eec

Contents?: true

Size: 248 Bytes

Versions: 1

Compression:

Stored size: 248 Bytes

Contents

module Prosperity
  class Period < Struct.new(:db_strf_str, :ruby_strf_str, :duration)
    def each_period(start_time, end_time)
      while start_time < end_time
        yield start_time
        start_time += duration
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
prosperity-0.0.1 lib/prosperity/period.rb