module Exa
Constants
- VERSION
exa version
Public Class Methods
clean_slate!()
click to toggle source
# File lib/exa.rb, line 71 def clean_slate! @root = TreeNode.new(name: '', value: '(root)') # @visitor = Visitor.new(@root) end
expand(path)
click to toggle source
# File lib/exa.rb, line 66 def expand(path) visitor.query(path) end
Also aliased as: call
recall(path)
click to toggle source
# File lib/exa.rb, line 60 def recall(path) p [ :recall, path: path ] visitor.seek(path) end
Also aliased as: []
remember(path, value)
click to toggle source
# File lib/exa.rb, line 54 def remember(path, value) p [ :remember, path: path, value: value ] recall(path).update(value) end
Also aliased as: []=
Private Class Methods
root()
click to toggle source
# File lib/exa.rb, line 81 def root @root ||= TreeNode.new(name: '', value: '(system root)') end
visitor()
click to toggle source
# File lib/exa.rb, line 77 def visitor Visitor.new(root) end