Class: LiveCable::Rendering::Partial

Inherits:
Object
  • Object
show all
Defined in:
lib/live_cable/rendering/partial.rb

Instance Method Summary collapse

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

Returns:



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