class ActionView::TemplatePath

def self.virtual(name, prefix, partial)

Experimental RBS support (using type sampling data from the type_fusion project).

def self.virtual: (String name, String prefix, bool partial) -> String

This signature was generated using 26 samples from 1 application.

Convert name, prefix, and partial into a virtual path string
def self.virtual(name, prefix, partial)
  if prefix.empty?
    "#{partial ? "_" : ""}#{name}"
  elsif partial
    "#{prefix}/_#{name}"
  else
    "#{prefix}/#{name}"
  end
end