Class: Vue::ControllerRenderer
- Inherits:
-
Object
- Object
- Vue::ControllerRenderer
- Includes:
- ActionView::Helpers::TagHelper, ActionView::Helpers::TextHelper, ViewHelper
- Defined in:
- lib/vue/controller_renderer.rb
Instance Attribute Summary collapse
-
#output_buffer ⇒ Object
Returns the value of attribute output_buffer.
Instance Method Summary collapse
- #call(component_name, options, &block) ⇒ Object
-
#initialize(options = {}) ⇒ ControllerRenderer
constructor
A new instance of ControllerRenderer.
Methods included from ViewHelper
Constructor Details
#initialize(options = {}) ⇒ ControllerRenderer
Returns a new instance of ControllerRenderer.
9 10 11 |
# File 'lib/vue/controller_renderer.rb', line 9 def initialize( = {}) controller = [:controller] end |
Instance Attribute Details
#output_buffer ⇒ Object
Returns the value of attribute output_buffer.
7 8 9 |
# File 'lib/vue/controller_renderer.rb', line 7 def output_buffer @output_buffer end |
Instance Method Details
#call(component_name, options, &block) ⇒ Object
13 14 15 16 17 18 |
# File 'lib/vue/controller_renderer.rb', line 13 def call(component_name, , &block) props = .fetch(:props, {}) = .merge() vue_component(component_name, props, , &block) end |