Inversion::RenderState::
Scope class
Superclass | BasicObject |
An encapsulation of the scope in which the bodies of tags evaluate. It’s used to provide a controlled, isolated namespace which remains the same from tag to tag.
Public Class Methods
Create a new RenderState::Scope
with its initial tag locals set to ‘locals`.
Public Instance Methods
Return the tag local with the specified ‘name`.
Set the tag local with the specified ‘name` to `value`.
Returns the Hash of rendered fragments that belong to this scope.
Protected Instance Methods
The main trickery behind this class – intercept tag locals as method calls and map them into values from the Scope’s locals.