Sha256: f53cff2f300ca97c9da4a4a153a426d53bdd09c7e53b4b5f8afa55b04f7cdeb2
Contents?: true
Size: 250 Bytes
Versions: 1
Compression:
Stored size: 250 Bytes
Contents
module CarefulArray def carefully_remove(elements) missing_elements = elements - self raise "Cannot delete missing elements: #{missing_elements.inspect}" unless missing_elements.empty? (self - elements).extend(CarefulArray) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
metric_fu-2.1.3.4 | lib/data_structures/careful_array.rb |