module ViewComponent::CompileCache

Keeps track of which templates have already been compiled This is not part of the public API

Public Instance Methods

compiled?(klass) click to toggle source
# File lib/view_component/compile_cache.rb, line 17
def compiled?(klass)
  cache.include? klass
end
invalidate!() click to toggle source
# File lib/view_component/compile_cache.rb, line 21
def invalidate!
  cache.clear
end
register(klass) click to toggle source
# File lib/view_component/compile_cache.rb, line 13
def register(klass)
  cache << klass
end