class ActionView::Template
def initialize(source, identifier, handler, locals:, format: nil, variant: nil, virtual_path: nil)
Experimental RBS support (using type sampling data from the type_fusion
project).
def initialize: (ActionView::Template::Sources::File source, String identifier, ActionView::Template::Handlers::ERB handler, locals: Array[], format: Symbol, variant: nil, virtual_path: String) -> void
This signature was generated using 1 sample from 1 application.
def initialize(source, identifier, handler, locals:, format: nil, variant: nil, virtual_path: nil) @source = source @identifier = identifier @handler = handler @compiled = false @locals = locals @virtual_path = virtual_path @variable = if @virtual_path base = @virtual_path.end_with?("/") ? "" : ::File.basename(@virtual_path) base =~ /\A_?(.*?)(?:\.\w+)*\z/ $1.to_sym end @format = format @variant = variant @compile_mutex = Mutex.new end