Module: DeepHashTransformer::CollectionOperation
- Defined in:
- lib/deep_hash_transformer/collection_operation.rb
Class Method Summary collapse
Class Method Details
.compact(val) ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/deep_hash_transformer/collection_operation.rb', line 8 def compact(val) case val when Array, Hash val.compact else val end end |