Add the ability to use Time class
Contributed by Paul Wright
# File lib/runt.rb, line 187 def initialize(*args) if(args[0].instance_of?(Runt::DPrecision::Precision)) @precision=args.shift else @precision=Runt::DPrecision::DEFAULT end old_initialize(*args) end
# File lib/runt.rb, line 198 def parse(*args) precision=Runt::DPrecision::DEFAULT if(args[0].instance_of?(Runt::DPrecision::Precision)) precision=args.shift end _parse=old_parse(*args) _parse.date_precision=precision _parse end
Generated with the Darkfish Rdoc Generator 2.