Class: Landline::TemplateContext
- Inherits:
-
Object
- Object
- Landline::TemplateContext
- Defined in:
- lib/landline/template.rb
Overview
Context for template engines
Instance Method Summary collapse
- #binding ⇒ Binding
-
#initialize(parent, parent_template) ⇒ TemplateContext
constructor
A new instance of TemplateContext.
Methods included from DSL::TemplateMethods
Methods included from DSL::CommonMethods
Methods included from DSL::ProbeMethods
#call, #cookie, #defer, #delete_cookie, #delete_header, #escape_html, #file, #form, #form?, #header, #hijack, #json, #json?, #jump, #partial_hijack, #query, #query?, #query_shallow, #redirect, #redirect_with_method, #request, #session, #status, #unescape_html
Methods included from DSL::ProbeConstructors
Constructor Details
#initialize(parent, parent_template) ⇒ TemplateContext
Returns a new instance of TemplateContext.
27 28 29 30 |
# File 'lib/landline/template.rb', line 27 def initialize(parent, parent_template) @origin = parent @parent_template = parent_template end |
Instance Method Details
#binding ⇒ Binding
23 24 25 |
# File 'lib/landline/template.rb', line 23 def binding Kernel.binding end |