Sha256: 4b4808941d1832f201f3c1ea472b512303581877e91470208cddf370b9f767de

Contents?: true

Size: 107 Bytes

Versions: 47

Compression:

Stored size: 107 Bytes

Contents

# Add an "indent" method to Array
class Array
  def indent
    flatten.compact.map{|i| "  " + i}
  end
end

Version data entries

47 entries across 47 versions & 2 rubygems

Version Path
ruboto-1.6.1 lib/ruboto/core_ext/array.rb
ruboto-1.6.0 lib/ruboto/core_ext/array.rb
ruboto-1.5.0 lib/ruboto/core_ext/array.rb
ruboto-1.4.1 lib/ruboto/core_ext/array.rb
ruboto-1.4.0 lib/ruboto/core_ext/array.rb
ruboto-1.3.1 lib/ruboto/core_ext/array.rb
ruboto-1.3.0 lib/ruboto/core_ext/array.rb
ruboto-1.2.0 lib/ruboto/core_ext/array.rb
ruboto-1.1.2 lib/ruboto/core_ext/array.rb
ruboto-1.1.1 lib/ruboto/core_ext/array.rb
ruboto-1.1.0 lib/ruboto/core_ext/array.rb
ruboto-1.0.3 lib/ruboto/core_ext/array.rb
ruboto-1.0.2 lib/ruboto/core_ext/array.rb
ruboto-1.0.1 lib/ruboto/core_ext/array.rb
ruboto-1.0.0 lib/ruboto/core_ext/array.rb
ruboto-0.16.0 lib/ruboto/core_ext/array.rb
ruboto-0.15.0 lib/ruboto/core_ext/array.rb
ruboto-0.14.0 lib/ruboto/core_ext/array.rb
ruboto-0.13.0 lib/ruboto/core_ext/array.rb
ruboto-0.12.0 lib/ruboto/core_ext/array.rb