Method: Ektoplayer::Database#initialize

Defined in:
lib/ektoplayer/database.rb

#initialize(db_file) ⇒ Database

Returns a new instance of Database.



66
67
68
69
70
71
# File 'lib/ektoplayer/database.rb', line 66

def initialize(db_file)
   @db = SQLite3::Database.new db_file
   @db.results_as_hash = true
   @events = Events.new(:changed)
   create_tables
end