Method: Array#dissolve
- Defined in:
- lib/ext.rb
#dissolve ⇒ Object
40 41 42 43 44 45 46 47 |
# File 'lib/ext.rb', line 40 def dissolve ary = flatten.compact case ary.size when 0 then [] when 1 then first else ary end end |
40 41 42 43 44 45 46 47 |
# File 'lib/ext.rb', line 40 def dissolve ary = flatten.compact case ary.size when 0 then [] when 1 then first else ary end end |