Module: Liquid::ContextProfilingHook

Included in:
Context
Defined in:
lib/liquid/profiler/hooks.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#profilerObject

Returns the value of attribute profiler.



26
27
28
# File 'lib/liquid/profiler/hooks.rb', line 26

def profiler
  @profiler
end

Instance Method Details

#new_isolated_subcontextObject



28
29
30
31
32
# File 'lib/liquid/profiler/hooks.rb', line 28

def new_isolated_subcontext
  new_context = super
  new_context.profiler = profiler
  new_context
end