Class: Pancake::Mixins::Render::ViewContext
- Includes:
- Capture, ContentInheritance, Renderer
- Defined in:
- lib/pancake/mixins/render/render.rb,
lib/pancake/mixins/render/view_context.rb
Defined Under Namespace
Modules: Capture, ContentInheritance, Renderer
Instance Attribute Summary collapse
-
#_view_context_for ⇒ Object
readonly
Returns the value of attribute _view_context_for.
Class Method Summary collapse
- ._capture_methods ⇒ Object
- ._concat_methods ⇒ Object
- .capture_method_for(item) ⇒ Object
- .concat_method_for(item) ⇒ Object
Instance Method Summary collapse
-
#initialize(env, renderer_for = nil) ⇒ ViewContext
constructor
A new instance of ViewContext.
Methods included from ContentInheritance
#content_block, #inherits_from, #super
Methods included from Renderer
#_current_renderer, #_with_renderer, #partial, #render
Methods included from Capture
#_erb_capture, #_erb_concat, #_haml_capture, #_haml_concat, #capture, #concat
Constructor Details
#initialize(env, renderer_for = nil) ⇒ ViewContext
Returns a new instance of ViewContext.
12 13 14 15 16 |
# File 'lib/pancake/mixins/render/view_context.rb', line 12 def initialize(env, renderer_for = nil ) super @env = env @_view_context_for = renderer_for end |
Instance Attribute Details
#_view_context_for ⇒ Object (readonly)
Returns the value of attribute _view_context_for.
11 12 13 |
# File 'lib/pancake/mixins/render/view_context.rb', line 11 def _view_context_for @_view_context_for end |
Class Method Details
._capture_methods ⇒ Object
10 11 12 |
# File 'lib/pancake/mixins/render/render.rb', line 10 def _capture_methods @_capture_methods ||= {} end |
._concat_methods ⇒ Object
6 7 8 |
# File 'lib/pancake/mixins/render/render.rb', line 6 def _concat_methods @_concat_methods ||= {} end |