module Priloo::Preloadable
Public Class Methods
included(base)
click to toggle source
# File lib/priloo/preloadable.rb, line 7 def self.included(base) base.extend ClassMethods end
Public Instance Methods
_preloadable_target()
click to toggle source
This method in only called in Preloaders::GenericPreloader
Its purpose is to make sure instance variables are injected in the right instance, if it is behind a proxy (for instance, a SimpleDelegator). We cannot be 100% sure that the proxy will forward Object#instance_variable_set() properly
# File lib/priloo/preloadable.rb, line 16 def _preloadable_target self end
priloo_clearall()
click to toggle source
# File lib/priloo/preloadable.rb, line 20 def priloo_clearall return unless instance_variable_defined?(Preloaders::GenericPreloader::PRIVATE_STORE_NAME) remove_instance_variable(Preloaders::GenericPreloader::PRIVATE_STORE_NAME) end