Class: TcUserTable

Inherits:
TokyoTableDad show all
Defined in:
lib/models/rufus_tokyo_user.rb

Constant Summary collapse

@@path =
false

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTcUserTable

Returns a new instance of TcUserTable.



197
198
199
200
201
# File 'lib/models/rufus_tokyo_user.rb', line 197

def initialize
  #make this path configurable somehow
  raise "you need to define a path for the user cabinet to be stored at, like so: TcUserTable.cabinet_path = 'folder/where/you/wanna/store/your/database'" unless @@path
  super(@@path + '/users.tct')
end

Class Method Details

.cabinet_path=(path) ⇒ Object



203
204
205
# File 'lib/models/rufus_tokyo_user.rb', line 203

def self.cabinet_path=(path)
  @@path = path
end