Sha256: 1fc8dfcfbaa0a7007bc840e3a105b70eae174283063687bae8ff2fc4ffd1eb3f
Contents?: true
Size: 290 Bytes
Versions: 10
Compression:
Stored size: 290 Bytes
Contents
### 2016-04-21 Hash#strip_blanks #### performs the classic .reject!{|k,v| v.blank?} ```ruby a = {a: nil, b: false, c: "", d: [], e: true} a.strip_blanks #=> {e: true} a #=> {a: nil, b: false, c: "", d: [], e: true} a.strip_blanks! #=> {a: nil, b: false, c: "", d: []} a #=> {e: true} ```
Version data entries
10 entries across 10 versions & 1 rubygems