module Roda::RodaPlugins::Part::ClassMethods

  1. lib/roda/plugins/part.rb

Methods

Public Instance

  1. freeze

Public Instance methods

freeze()

When freezing, optimize the part method if assuming fixed locals and caching templates.

[show source]
   # File lib/roda/plugins/part.rb
31 def freeze
32   if render_opts[:assume_fixed_locals] && !render_opts[:check_template_mtime]
33     include AssumeFixedLocalsInstanceMethods
34   end
35 
36   super
37 end