module DCell::Global
Public Instance Methods
get(key)
click to toggle source
Get a global value
# File lib/dcell/global.rb, line 7 def get(key) DCell.registry.get_global key.to_s end
Also aliased as: []
keys()
click to toggle source
Get the keys for all the globals in the system
# File lib/dcell/global.rb, line 19 def keys DCell.registry.global_keys.map(&:to_sym) end
set(key, value)
click to toggle source
Set a global value
# File lib/dcell/global.rb, line 13 def set(key, value) DCell.registry.set_global key.to_s, value end
Also aliased as: []=