Sha256: f523cd86906065b513c4b959d435a3bca4b75fb9cdd7b532a6d73761371ff1cb
Contents?: true
Size: 434 Bytes
Versions: 1
Compression:
Stored size: 434 Bytes
Contents
module Mize::Configure attr_accessor :default_cache # Set the default cache object to +cache+. def cache(cache) self.default_cache = cache end # Configures Mize by executing a block of code and executing it in # configuration context/passing the configuration into it. def configure(&block) instance_eval(&block) end end module Mize extend Mize::Configure end Mize.default_cache = Mize::DefaultCache.new
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
mize-0.6.1 | lib/mize/configure.rb |