Module: CacheTree

Defined in:
lib/cache_tree.rb

Defined Under Namespace

Classes: Manager, Node

Class Method Summary collapse

Class Method Details

.node(object) ⇒ Object



13
14
15
# File 'lib/cache_tree.rb', line 13

def self.node(object)
  CacheTree::Node.new(object)
end

.use(node, report = proc {}, &block) ⇒ Object



9
10
11
# File 'lib/cache_tree.rb', line 9

def self.use(node, report = proc {}, &block)
  CacheTree::Manager.instance.use(node, report, &block)
end