Module: Exa

Defined in:
lib/exa.rb,
lib/exa/shell.rb,
lib/exa/version.rb,
lib/exa/visitor.rb,
lib/exa/tree_node.rb

Defined Under Namespace

Classes: Copier, Deleter, Process, Shell, ShellCommand, ShellConfig, TreeNode, Visitor

Constant Summary collapse

VERSION =

exa version

"0.1.0"

Class Method Summary collapse

Class Method Details

.clean_slate!Object



71
72
73
74
# File 'lib/exa.rb', line 71

def clean_slate!
  @root = TreeNode.new(name: '', value: '(root)')
  # @visitor = Visitor.new(@root)
end

.expand(path) ⇒ Object Also known as: call



66
67
68
# File 'lib/exa.rb', line 66

def expand(path)
  visitor.query(path)
end

.recall(path) ⇒ Object Also known as: []



60
61
62
63
# File 'lib/exa.rb', line 60

def recall(path)
  p [ :recall, path: path ]
  visitor.seek(path)
end

.remember(path, value) ⇒ Object Also known as: []=



54
55
56
57
# File 'lib/exa.rb', line 54

def remember(path, value)
  p [ :remember, path: path, value: value ]
  recall(path).update(value)
end