Sha256: 4bdf5b4e004633ae48b1c7a454db9518bafa81c2311ebc9f04a01fc065a82f98
Contents?: true
Size: 318 Bytes
Versions: 3
Compression:
Stored size: 318 Bytes
Contents
require 'ludy/version' if Ludy::ruby_before '1.9.0' begin require 'facets/enumerable/combos' rescue LoadError require 'ludy/array/combos' end class Array # it would be defined if RUBY_VERSION < '1.9.0', see rdoc in ruby 1.9 def product *args args.unshift(self).combos end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
godfat-ludy-0.1.13 | lib/ludy/array/product.rb |
ludy-0.1.13 | lib/ludy/array/product.rb |
ludy-0.1.11 | lib/ludy/array/product.rb |