Class: TemplateCache

Inherits:
Object
  • Object
show all
Defined in:
lib/plugems/plugem_view_support.rb

Constant Summary collapse

@@cache =
{}
@@caching =
true

Class Method Summary collapse

Class Method Details

.cacheObject



6
7
8
# File 'lib/plugems/plugem_view_support.rb', line 6

def self.cache
  @@caching ? @@cache : {}
end

.caching=(arg) ⇒ Object



10
11
12
# File 'lib/plugems/plugem_view_support.rb', line 10

def self.caching=(arg)
  @@caching = arg
end