Sha256: e43e52ae1b95e78cf9d27267c3166a546f2b4146379d39650138f0c74278220b

Contents?: true

Size: 186 Bytes

Versions: 8

Compression:

Stored size: 186 Bytes

Contents

module Xi::CoreExt
  module Enumerator
    def next?
      peek
      true
    rescue StopIteration
      false
    end
  end
end

class Enumerator
  include Xi::CoreExt::Enumerator
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
xi-lang-0.2.5 lib/xi/core_ext/enumerator.rb
xi-lang-0.2.4 lib/xi/core_ext/enumerator.rb
xi-lang-0.2.3 lib/xi/core_ext/enumerator.rb
xi-lang-0.2.2 lib/xi/core_ext/enumerator.rb
xi-lang-0.2.1 lib/xi/core_ext/enumerator.rb
xi-lang-0.2.0 lib/xi/core_ext/enumerator.rb
xi-lang-0.1.6 lib/xi/core_ext/enumerator.rb
xi-lang-0.1.5 lib/xi/core_ext/enumerator.rb