module ActionView::ViewPaths

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

# sig/action_view/view_paths.rbs

module ActionView::ViewPaths
  def self.all_view_paths: () -> untyped
  def self.get_view_paths: (Class klass) -> ActionView::PathSet
end

def self.all_view_paths

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

def self.all_view_paths: () -> untyped

This signature was generated using 2 samples from 1 application.

def self.all_view_paths
  @all_view_paths.values.uniq
end

def self.get_view_paths(klass)

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

def self.get_view_paths: (Class klass) -> ActionView::PathSet

This signature was generated using 5 samples from 2 applications.

def self.get_view_paths(klass)
  @all_view_paths[klass] || get_view_paths(klass.superclass)
end

def self.set_view_paths(klass, paths)

def self.set_view_paths(klass, paths)
  @all_view_paths[klass] = paths
end

def _prefixes # :nodoc:

:nodoc:
The prefixes used in render "foo" shortcuts.
def _prefixes # :nodoc:
  self.class._prefixes
end

def append_view_path(path)

(see ActionView::PathSet for more information)
the default view path. You may also provide a custom view path
* path - If a String is provided, it gets converted into
==== Parameters

Append a path to the list of view paths for the current LookupContext.
def append_view_path(path)
  lookup_context.view_paths.push(*path)
end

def details_for_lookup

def details_for_lookup
  {}
end

def lookup_context

details. Check ActionView::LookupContext for more information.
information required for looking up templates, i.e. view paths and
LookupContext is the object responsible for holding all
def lookup_context
  @_lookup_context ||=
    ActionView::LookupContext.new(self.class._view_paths, details_for_lookup, _prefixes)
end

def prepend_view_path(path)

(see ActionView::PathSet for more information)
the default view path. You may also provide a custom view path
* path - If a String is provided, it gets converted into
==== Parameters

Prepend a path to the list of view paths for the current LookupContext.
def prepend_view_path(path)
  lookup_context.view_paths.unshift(*path)
end