Method: Rod::CollectionProxy#clear
- Defined in:
- lib/rod/collection_proxy.rb
#clear ⇒ Object
Clears the contents of the collection proxy.
216 217 218 219 220 221 |
# File 'lib/rod/collection_proxy.rb', line 216 def clear @deleted = @original_size.times.to_a @added.clear @map.clear @size = 0 end |