class ViewComponent::Compiler
def compile_template(template, handler)
Experimental RBS support (using type sampling data from the type_fusion
project).
def compile_template: (String template, ActionView::Template::Handlers::ERB handler) -> String
This signature was generated using 4 samples from 2 applications.
def compile_template(template, handler) template.rstrip! if component_class.strip_trailing_whitespace? if handler.method(:call).parameters.length > 1 handler.call(component_class, template) else handler.call( OpenStruct.new( source: template, identifier: component_class.identifier, type: component_class.type ) ) end end