Class: Array

Inherits:
Object
  • Object
show all
Defined in:
lib/ext/array.rb

Instance Method Summary collapse

Instance Method Details

#compact_emptyObject



7
8
9
# File 'lib/ext/array.rb', line 7

def compact_empty
	delete_if {|i| i.respond_to?(:empty?) ? !!i.empty? : !i }
end

#symbolize_keysObject



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

def symbolize_keys
	map(&:symbolize_keys)
end