lib/roda/plugins/render.rb
def compiled_method_lambda(template, roda_class, method_name, locals_keys=EMPTY_ARRAY)
            mod = roda_class::RodaCompiledTemplates
            lambda do |locals, &block|
              if template.modified?
                mod.send(:define_method, method_name, Render.tilt_template_compiled_method(template, locals_keys, roda_class))
                mod.send(:private, method_name)
              end

              send(method_name, locals, &block)
            end
          end
# Return the lambda used to define the compiled template method.  This
# is separated into its own method so the lambda does not capture any
# unnecessary local variables
Return the lambda used to define the compiled template method.  This
is separated into its own method so the lambda does not capture any
unnecessary local variables
Return the lambda used to define the compiled template method . This is separated into its own method so the lambda does not capture any unnecessary local variables
def compiled_method_lambda(template, roda_class, method_name, locals_keys=EMPTY_ARRAY)
            mod = roda_class::RodaCompiledTemplates
            lambda do |locals, &block|
              if template.modified?
                mod.send(:define_method, method_name, Render.tilt_template_compiled_method(template, locals_keys, roda_class))
                mod.send(:private, method_name)
              end
              send(method_name, locals, &block)
            end
          end
def compiled_method_lambda ( template , roda_class , method_name , locals_keys = EMPTY_ARRAY ) mod = roda_class :: RodaCompiledTemplates lambda do | locals , & block | if template . modified? mod . send ( :define_method , method_name , Render . tilt_template_compiled_method ( template , locals_keys , roda_class ) ) mod . send ( :private , method_name ) end send ( method_name , locals , & block ) end end
Return the lambda used to define the compiled template method.
Return the lambda used to define the compiled template method .
template
roda_class
method_name
locals_keys