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.
Create a new
RenderState::Scope with its initial tag locals set to ‘locals`.
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.
Return the Hash of tag locals the belongs to this scope.
The main trickery behind this class – intercept tag locals as method calls and map them into values from the Scope’s locals.