lib/ceml.rb in ceml-0.6.0 vs lib/ceml.rb in ceml-0.6.1

- old
+ new

@@ -14,11 +14,12 @@ require 'ceml/incident' require 'ceml/driver' module CEML extend self - attr_accessor :delegate - # @delegate = Delegate.new + @extra_seconds = 0 + def clock; Time.now.utc.to_i + @extra_seconds; end + def incr_clock(s); @extra_seconds += s; end end module CEML def parse(what, string) string.gsub!(/\n +/, ' ')