Sha256: 0a9310eaddb6adf89436878190f07bfbdae2be0c058690d9b2ae7c058cd7b94e

Contents?: true

Size: 279 Bytes

Versions: 2

Compression:

Stored size: 279 Bytes

Contents

require 'generator'

module Combinatorics
  # auto-detects the `Generator` class.
  Generator = if defined?(::Enumerator::Generator) # 1.9
                ::Enumerator::Generator
              elsif defined?(::Generator) # 1.8.7
                ::Generator
              end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
combinatorics-0.3.1 lib/combinatorics/generator.rb
combinatorics-0.3.0 lib/combinatorics/generator.rb