Sha256: 51cb0c0d306daa604e3398893d9bf2ccd2df4330de8fd4d70731c876c0ce5fcd

Contents?: true

Size: 349 Bytes

Versions: 1

Compression:

Stored size: 349 Bytes

Contents

# Essentially an ordered hash.
# Ruby 1.9 hashes are all ordered.
require "util"
require "interval"
require "contracts"
require "date"
include Contracts

class Timespan
  WEEK = :week
  YEAR = :year

  class MONTH
    attr_accessor :start_date

    Contract Date => Any
    def initialize start_date
      @start_date = start_date
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
chorewheel-0.0.1 lib/timespan.rb