Sha256: 625ee66930815ff74b8571ef1b22d2f7b2bfebc29041cf314e665f023e6e4165

Contents?: true

Size: 314 Bytes

Versions: 53

Compression:

Stored size: 314 Bytes

Contents

module RiCal
  class OccurrencePeriod
    attr_reader :dtstart, :dtend
    def initialize(dtstart, dtend)
      @dtstart = dtstart
      @dtend = dtend
    end
    
    def to_s
      "op:#{dtstart}-#{dtend}"
    end
    
    def <=>(other)
      [dtstart, dtend] <=> [other.dtstart, other.dtend]
    end
  end
end

Version data entries

53 entries across 53 versions & 9 rubygems

Version Path
demingfactor-ri_cal-0.10.0 lib/ri_cal/occurrence_period.rb
demingfactor-ri_cal-0.9.0 lib/ri_cal/occurrence_period.rb
ebeigarts-ri_cal-0.8.1 lib/ri_cal/occurrence_period.rb
rubyredrick-ri_cal-0.0.11 lib/ri_cal/occurrence_period.rb
rubyredrick-ri_cal-0.5.0 lib/ri_cal/occurrence_period.rb
rubyredrick-ri_cal-0.5.1 lib/ri_cal/occurrence_period.rb
rubyredrick-ri_cal-0.5.2 lib/ri_cal/occurrence_period.rb
rubyredrick-ri_cal-0.5.3 lib/ri_cal/occurrence_period.rb
rubyredrick-ri_cal-0.6.0 lib/ri_cal/occurrence_period.rb
rubyredrick-ri_cal-0.6.1 lib/ri_cal/occurrence_period.rb
rubyredrick-ri_cal-0.6.2 lib/ri_cal/occurrence_period.rb
rubyredrick-ri_cal-0.6.3 lib/ri_cal/occurrence_period.rb
rubyredrick-ri_cal-0.7.0 lib/ri_cal/occurrence_period.rb
rubyredrick-ri_cal-0.7.1 lib/ri_cal/occurrence_period.rb
rubyredrick-ri_cal-0.7.2 lib/ri_cal/occurrence_period.rb
rubyredrick-ri_cal-0.7.4 lib/ri_cal/occurrence_period.rb
rubyredrick-ri_cal-0.7.5 lib/ri_cal/occurrence_period.rb
rubyredrick-ri_cal-0.7.7 lib/ri_cal/occurrence_period.rb
rubyredrick-ri_cal-0.8.0 lib/ri_cal/occurrence_period.rb
rubyredrick-ri_cal-0.8.1 lib/ri_cal/occurrence_period.rb