Sha256: aaced87e0889508a2b38b8ee0cbe6898c2ecb4a7dec0b81e6419516f9a772c9a

Contents?: true

Size: 452 Bytes

Versions: 61

Compression:

Stored size: 452 Bytes

Contents

require 'spiderfw/controller/session/flash_hash'

module Spider
    
    class TransientHash < FlashHash
        
        def purge
            if (@parent_flash && @parent_flash_key && @parent_flash.accessed[@parent_flash_key])
                self.delete_if{ |k, v| !@accessed[k] && !@active[k] }
            end
            @sub_flashes.each{ |k, f| f.purge }
            @accessed = {}
            @active = {}
        end
        
    end
    
end

Version data entries

61 entries across 61 versions & 1 rubygems

Version Path
spiderfw-1.0.1 lib/spiderfw/controller/session/transient_hash.rb
spiderfw-1.0.0 lib/spiderfw/controller/session/transient_hash.rb
spiderfw-0.6.39 lib/spiderfw/controller/session/transient_hash.rb
spiderfw-0.6.38 lib/spiderfw/controller/session/transient_hash.rb
spiderfw-0.6.37 lib/spiderfw/controller/session/transient_hash.rb
spiderfw-0.6.35 lib/spiderfw/controller/session/transient_hash.rb
spiderfw-0.6.34 lib/spiderfw/controller/session/transient_hash.rb
spiderfw-0.6.33 lib/spiderfw/controller/session/transient_hash.rb
spiderfw-0.6.32 lib/spiderfw/controller/session/transient_hash.rb
spiderfw-0.6.31 lib/spiderfw/controller/session/transient_hash.rb
spiderfw-0.6.30 lib/spiderfw/controller/session/transient_hash.rb
spiderfw-0.6.29 lib/spiderfw/controller/session/transient_hash.rb
spiderfw-0.6.28 lib/spiderfw/controller/session/transient_hash.rb
spiderfw-0.6.27 lib/spiderfw/controller/session/transient_hash.rb
spiderfw-0.6.26 lib/spiderfw/controller/session/transient_hash.rb
spiderfw-0.6.26.pre1 lib/spiderfw/controller/session/transient_hash.rb
spiderfw-0.6.25 lib/spiderfw/controller/session/transient_hash.rb
spiderfw-0.6.24 lib/spiderfw/controller/session/transient_hash.rb
spiderfw-0.6.23 lib/spiderfw/controller/session/transient_hash.rb
spiderfw-0.6.22 lib/spiderfw/controller/session/transient_hash.rb