lib/taskinator/tasks.rb in taskinator-0.0.15 vs lib/taskinator/tasks.rb in taskinator-0.0.16

- old
+ new

@@ -29,10 +29,10 @@ def empty? @head.nil? end - def each(&block) + def each return to_enum(__method__) unless block_given? current = @head while current yield current