Module: Garterbelt

Defined in:
lib/page.rb,
lib/view.rb,
lib/stocking.rb,
lib/renderers/xml.rb,
lib/renderers/text.rb,
lib/renderers/cache.rb,
lib/renderers/comment.rb,
lib/renderers/doctype.rb,
lib/renderers/renderer.rb,
lib/renderers/closed_tag.rb,
lib/renderers/content_tag.rb,
lib/renderers/content_rendering.rb

Defined Under Namespace

Modules: ContentRendering Classes: Cache, ClosedTag, Comment, ContentTag, Doctype, Page, Renderer, Text, View, Xml

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.wrap_lengthObject



16
17
18
# File 'lib/stocking.rb', line 16

def self.wrap_length
  @wrap_length || 80
end

Class Method Details

.cache(store = :default) ⇒ Object



6
7
8
9
10
# File 'lib/stocking.rb', line 6

def self.cache(store = :default)
  c = cache_hash[store]
  raise "Cache #{store.inspect} has not yet been configured" unless c
  c
end

.cache_hashObject



2
3
4
# File 'lib/stocking.rb', line 2

def self.cache_hash
  @cache_hash ||= {:default => Moneta::Memory.new}
end