Sha256: 1c42d3f6ac43698c89282949701ea78dc69ffa9ee45b108bed2b8f5e3badb9a6

Contents?: true

Size: 343 Bytes

Versions: 3

Compression:

Stored size: 343 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(quiet=true)
    self.join(" \n ").runnable(quiet)
  end
  def nice_runnable(quiet=true)
    self.join(" \n ").nice_runnable(quiet)
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
auser-poolparty-0.1.1 lib/core/array.rb
auser-poolparty-0.1.2 lib/core/array.rb
jtzemp-poolparty-0.1.2 lib/core/array.rb