Module: CacheTree

Defined in:
lib/cache_tree.rb

Defined Under Namespace

Classes: Manager, Node

Class Method Summary collapse

Class Method Details

.node(object) ⇒ Object



18
19
20
# File 'lib/cache_tree.rb', line 18

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

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



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

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