Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/ext/array.rb
Instance Method Summary collapse
Instance Method Details
#compact_empty ⇒ Object
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_keys ⇒ Object
3 4 5 |
# File 'lib/ext/array.rb', line 3 def symbolize_keys map(&:symbolize_keys) end |