Module: TrickSerial::Serializer::ProxySwizzlingArray
- Includes:
- ProxySwizzling
- Defined in:
- lib/trick_serial/serializer.rb
Overview
class
Instance Method Summary collapse
Instance Method Details
#[](i) ⇒ Object
378 379 380 381 382 383 384 |
# File 'lib/trick_serial/serializer.rb', line 378 def [](i) p = super if ! @does_not_have_proxies && ObjectProxy === p p = self[i] = p.object end p end |
#each ⇒ Object
386 387 388 389 390 391 392 393 394 |
# File 'lib/trick_serial/serializer.rb', line 386 def each unless @does_not_have_proxies size.times do | i | self[i] end @does_not_have_proxies = false end super end |
#map! ⇒ Object
396 397 398 399 |
# File 'lib/trick_serial/serializer.rb', line 396 def map! each { | e | e } super end |
#select ⇒ Object
401 402 403 404 |
# File 'lib/trick_serial/serializer.rb', line 401 def select each { | e | } super end |