Class: N::App::CodeScript

Inherits:
Script
  • Object
show all
Defined in:
lib/n/app/handlers/code-handler.rb

Overview

Codescript

encapsulates the script defining Ruby Code to execute. effectively acts as a Generator.

Requirements:

  • the generated class should be a singleton, no need to stress

the garbage collector.

  • the render method should be thread safe.

Instance Attribute Summary

Attributes inherited from Script

#cacheability, #key, #path, #sub_scripts

Method Summary

Methods inherited from Script

#__action, #__authorize?, #__cache?, #__cache_clear, #__cache_get, #__cache_put, #__calc_lm, #__calc_tag, #__create_time, #__etag, #__file_mtime, #__force_login, #__include, #__init, #__init_render, #__inject, #__lm, #__path, #__post_evaluate, #__post_render, #__pre_evaluate, #__pre_render, #__render, #__shader, #__tag, #admin?, admin_role, #cache?, #cache_flag, #cache_valid?, enable_cache!, #initialize

Constructor Details

This class inherits a constructor from N::App::Script