class Daneel::Data
Non-persistent storage, extend if you want more.
Public Class Methods
new()
click to toggle source
# File lib/daneel/data.rb, line 5 def initialize @store = {} end
Public Instance Methods
[](key)
click to toggle source
# File lib/daneel/data.rb, line 13 def [](key) @store[key] end
[]=(key, value)
click to toggle source
# File lib/daneel/data.rb, line 17 def []=(key, value) @store[key] = value end
rooms()
click to toggle source
# File lib/daneel/data.rb, line 25 def rooms @store["rooms"] ||= {} end
save()
click to toggle source
# File lib/daneel/data.rb, line 9 def save # it's a hash, what do you want? end
users()
click to toggle source
# File lib/daneel/data.rb, line 21 def users @store["users"] ||= {} end