Sha256: e76e4fa473f1216b05417f48a054f3e7571d8df0096161b22f10795abf1e66b2

Contents?: true

Size: 243 Bytes

Versions: 4

Compression:

Stored size: 243 Bytes

Contents

=begin rdoc
  Array extensions
=end
require "enumerator"
class Array
  # Collection with the index
  def collect_with_index &block
    self.enum_for(:each_with_index).collect &block
  end
  def runnable
    self.join(" \n ").runnable
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
auser-poolparty-0.0.8 lib/core/array.rb
auser-poolparty-0.0.9 lib/core/array.rb
auser-poolparty-0.1.0 lib/core/array.rb
dreadpiratepj-poolparty-0.0.8 lib/core/array.rb