Class: LiveCable::Rendering::Partial
- Inherits:
-
Object
- Object
- LiveCable::Rendering::Partial
- Defined in:
- lib/live_cable/rendering/partial.rb
Instance Method Summary collapse
- #for_component(component, view_context) ⇒ PartialRenderer
-
#initialize(parts, metadata) ⇒ Partial
constructor
A new instance of Partial.
Constructor Details
#initialize(parts, metadata) ⇒ Partial
Returns a new instance of Partial.
8 9 10 11 12 |
# File 'lib/live_cable/rendering/partial.rb', line 8 def initialize(parts, ) @parts = parts @metadata = @renderer_class = build_renderer_class end |
Instance Method Details
#for_component(component, view_context) ⇒ PartialRenderer
15 16 17 |
# File 'lib/live_cable/rendering/partial.rb', line 15 def for_component(component, view_context) renderer_class.new(component, parts, view_context) end |