Module: ViewComponent::FragmentCaching::Digestors::WithViewComponentRb::ClassMethods

Defined in:
lib/view_component/fragment_caching/digestors/with_view_component_rb.rb

Instance Method Summary collapse

Instance Method Details

#create(name, logical_name, template, partial) ⇒ Object



12
13
14
15
16
# File 'lib/view_component/fragment_caching/digestors/with_view_component_rb.rb', line 12

def create(name, logical_name, template, partial)
  klass = partial ? ActionView::Digestor::Partial : ActionView::Digestor::Node
  children = ruby_nodes name, template, klass
  klass.new name, logical_name, template, children
end