Sha256: 1f16ffdb297098424b71ad019143774f66bc0bfdc765f118d1939b196965a935

Contents?: true

Size: 359 Bytes

Versions: 4

Compression:

Stored size: 359 Bytes

Contents

module Garterbelt
  def self.cache_hash
    @cache_hash ||= {:default => Moneta::Memory.new}
  end
  
  def self.cache(store = :default)
    c = cache_hash[store]
    raise "Cache #{store.inspect} has not yet been configured" unless c
    c
  end
  
  class << self
    attr_writer :wrap_length
  end
  
  def self.wrap_length
    @wrap_length || 80
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
garterbelt-0.1.1 lib/stocking.rb
garterbelt-0.1.0 lib/stocking.rb
garterbelt-0.0.9 lib/stocking.rb
garterbelt-0.0.8 lib/stocking.rb