module ViewComponent::CompileCache

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

# sig/view_component/compile_cache.rbs

module ViewComponent::CompileCache
  def compiled?: (Class klass) -> untyped
  def register: (Class klass) -> untyped
end

def compiled?(klass)

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

def compiled?: (Class klass) -> untyped

This signature was generated using 2 samples from 1 application.

def compiled?(klass)
  cache.include? klass
end

def invalidate!

def invalidate!
  cache.clear
end

def invalidate_class!(klass)

def invalidate_class!(klass)
  cache.delete(klass)
end

def register(klass)

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

def register: (Class klass) -> untyped

This signature was generated using 1 sample from 1 application.

def register(klass)
  cache << klass
end