class Sheldon
Constants
- VERSION
Attributes
brain[R]
builder[R]
Public Class Methods
new(sheldon_data_dir)
click to toggle source
# File lib/sheldon/sheldon.rb, line 7 def initialize(sheldon_data_dir) unless Dir.exist?(sheldon_data_dir) raise MissingDataDirectoryException, "Directory #{sheldon_data_dir} does not exist." end @brain = Brain.new(sheldon_data_dir) @builder = Builder.new end
Public Instance Methods
build(abs_learn_path)
click to toggle source
# File lib/sheldon/sheldon.rb, line 16 def build(abs_learn_path) builder.build(abs_learn_path) end
forget(recall_cue)
click to toggle source
# File lib/sheldon/sheldon.rb, line 20 def forget(recall_cue) brain.forget(recall_cue) end
learn(recall_cue, abs_learn_path)
click to toggle source
# File lib/sheldon/sheldon.rb, line 24 def learn(recall_cue, abs_learn_path) brain.learn(recall_cue, abs_learn_path) end
list_cues()
click to toggle source
# File lib/sheldon/sheldon.rb, line 28 def list_cues brain.list_cues end
recall(recall_cue, opts={})
click to toggle source
# File lib/sheldon/sheldon.rb, line 32 def recall(recall_cue, opts={}) brain.recall(recall_cue, opts) end
recalled?(recall_cue)
click to toggle source
# File lib/sheldon/sheldon.rb, line 40 def recalled?(recall_cue) brain.recalled?(recall_cue) end
setup!()
click to toggle source
# File lib/sheldon/sheldon.rb, line 36 def setup! brain.memory.save! end