Class: Hearken::Console

Inherits:
Object
  • Object
show all
Includes:
ShellShock::Context
Defined in:
lib/hearken/console.rb

Instance Method Summary collapse

Constructor Details

#initializeConsole

Returns a new instance of Console.



13
14
15
16
17
18
19
# File 'lib/hearken/console.rb', line 13

def initialize
  @prompt = "hearken > "
  library = Hearken::Library.new
  add_command(Hearken::Command::Enqueue.new(library), "enqueue")
  add_command(Hearken::Command::Reload.new(library), "reload")
  add_command(Hearken::Command::Search.new(library), "search")
end