lib/vpim/view.rb in vpim-0.695 vs lib/vpim/view.rb in vpim-13.11.11

- old
+ new

@@ -1,5 +1,6 @@ +# -*- encoding : utf-8 -*- =begin Copyright (C) 2008 Sam Roberts This library is free software; you can redistribute it and/or modify it under the same terms as the ruby language itself, see the file COPYING for @@ -8,11 +9,11 @@ require "enumerator" module Vpim module View - + SECSPERDAY = 24 * 60 * 60 # View only events occuring in the next week. module Week def each(klass = nil) #:nodoc: @@ -48,10 +49,10 @@ end end end __ =begin - block = lambda do |dountil| + block = lambda do |dountil| unless block_given? return Enumerable::Enumerator.new(self, :occurrences, dountil) end super(dountil) do |t| break if t >= t1