Class: TcUserTable
- Inherits:
-
TokyoTableDad
- Object
- Rufus::Edo::Table
- TokyoTableDad
- TcUserTable
- Defined in:
- lib/models/rufus_tokyo_user.rb
Constant Summary collapse
- @@path =
false
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ TcUserTable
constructor
A new instance of TcUserTable.
Constructor Details
#initialize ⇒ TcUserTable
Returns a new instance of TcUserTable.
168 169 170 171 172 |
# File 'lib/models/rufus_tokyo_user.rb', line 168 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
174 175 176 |
# File 'lib/models/rufus_tokyo_user.rb', line 174 def self.cabinet_path=(path) @@path = path end |