Module: Stale

Defined in:
lib/stale/view.rb,
lib/stale/cache.rb,
lib/stale/model.rb,
lib/stale/version.rb,
lib/stale/fragments.rb,
lib/stale/interface.rb,
lib/stale/controller.rb,
lib/stale/parameters.rb,
lib/stale/dependencies.rb,
lib/stale/configuration.rb

Defined Under Namespace

Modules: Controller, Dependencies, Fragments, Interface, Model, Parameters, View Classes: Cache, Configuration

Constant Summary collapse

VERSION =
"0.0.1"

Class Method Summary collapse

Class Method Details

.cacheObject



43
44
45
# File 'lib/stale/configuration.rb', line 43

def self.cache
  configuration.cache
end

.configure {|configuration| ... } ⇒ Object

Yields:

  • (configuration)


33
34
35
36
37
# File 'lib/stale/configuration.rb', line 33

def self.configure(&block)
  configuration = Configuration.new
  yield configuration if block_given?
  self.configuration = configuration
end

.interfaceObject



39
40
41
# File 'lib/stale/configuration.rb', line 39

def self.interface
  configuration.interface
end