Module: DCell::Global
Overview
Global object registry shared among all DCell nodes
Instance Method Summary collapse
-
#get(key) ⇒ Object
(also: #[])
Get a global value.
-
#keys ⇒ Object
Get the keys for all the globals in the system.
-
#set(key, value) ⇒ Object
(also: #[]=)
Set a global value.
Instance Method Details
#get(key) ⇒ Object Also known as: []
Get a global value
7 8 9 |
# File 'lib/dcell/global.rb', line 7 def get(key) DCell.registry.get_global key.to_s end |