Class: Array

Inherits:
Object show all
Defined in:
lib/ruboto/core_ext/array.rb

Overview

Add an “indent” method to Array

Instance Method Summary collapse

Instance Method Details

#indentObject



3
4
5
# File 'lib/ruboto/core_ext/array.rb', line 3

def indent
  flatten.compact.map{|i| "  " + i}
end