Sha256: 03405a1ad922a40dc8248f3a1aff97e068e46f54cf5db9f0b7cd4bdd774a855a
Contents?: true
Size: 457 Bytes
Versions: 5
Compression:
Stored size: 457 Bytes
Contents
module PairSee class DateCombo attr_reader :date, :devs def initialize(date, *devs) @date, @devs = date, devs end def to_s if date.nil? "#{devs.join ', '}: not yet" else "#{devs.join ', '}: #{date}" end end def <=>(other) if date && other.date date <=> other.date elsif date 1 elsif other.date -1 else 0 end end end end
Version data entries
5 entries across 5 versions & 1 rubygems