Object
Simple value class for keeping track of precisioned dates
Minimun values that precisioned fields get set to
String values for display
Some constants w/arbitrary integer values used internally for comparisions
# File lib/runt/dprecision.rb, line 94 def Precision.day new(DAY_PREC) end
# File lib/runt/dprecision.rb, line 98 def Precision.hour new(HOUR_PREC) end
# File lib/runt/dprecision.rb, line 110 def Precision.millisec new(MILLI_PREC) end
# File lib/runt/dprecision.rb, line 102 def Precision.min new(MIN_PREC) end
# File lib/runt/dprecision.rb, line 86 def Precision.month new(MONTH_PREC) end
# File lib/runt/dprecision.rb, line 118 def initialize(prec) @precision = prec end
# File lib/runt/dprecision.rb, line 106 def Precision.sec new(SEC_PREC) end
# File lib/runt/dprecision.rb, line 122 def <=>(other) self.precision <=> other.precision end
# File lib/runt/dprecision.rb, line 126 def ===(other) self.precision == other.precision end
# File lib/runt/dprecision.rb, line 134 def label LABEL[@precision] end
Generated with the Darkfish Rdoc Generator 2.