lib/vpim/enumerator.rb in vpim-0.619 vs lib/vpim/enumerator.rb in vpim-0.658

- old
+ new

@@ -4,14 +4,19 @@ 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 details. =end +require "enumerator" + module Vpim # This is a way for an object to have multiple ways of being enumerated via # argument to it's #each() method. An Enumerator mixes in Enumerable, so the - # standard APIS such as Enumerable#map(), Enumerable#to_a(), and + # standard APIs such as Enumerable#map(), Enumerable#to_a(), and # Enumerable#find_all() can be used on it. + # + # TODO since 1.8, this is part of the standard library, I should rewrite vPim + # so this can be removed. class Enumerator include Enumerable def initialize(obj, *args) @obj = obj