Class: Persistent::Shell::AbstractHistoryStore

Inherits:
Object
  • Object
show all
Defined in:
lib/persistent-shell-history/abstract-history-store.rb

Direct Known Subclasses

BinaryHistoryStore, OldHistoryStore

Constant Summary collapse

SCHEMA_VERSION =
"1"

Instance Method Summary collapse

Instance Method Details

#commandsObject



8
# File 'lib/persistent-shell-history/abstract-history-store.rb', line 8

def commands; end

#dbObject



9
# File 'lib/persistent-shell-history/abstract-history-store.rb', line 9

def db; end

#shema_match?Boolean

Returns:

  • (Boolean)


10
# File 'lib/persistent-shell-history/abstract-history-store.rb', line 10

def shema_match?; db.has_key? "schema_version" and db["schema_version"] == SCHEMA_VERSION; end

#shema_versionObject



11
# File 'lib/persistent-shell-history/abstract-history-store.rb', line 11

def shema_version; db["schema_version"] if db.has_key? "schema_version" ; end