Class: Client::Global
Class Method Summary
collapse
Methods inherited from Variable
global, method_missing, push
Class Method Details
.clear ⇒ Object
8
9
10
|
# File 'lib/client_variable/global.rb', line 8
def clear
@datum = {}
end
|
.get_variable(name) ⇒ Object
12
13
14
|
# File 'lib/client_variable/global.rb', line 12
def get_variable(name)
values[name]
end
|
.set_variable(name, value) ⇒ Object
16
17
18
|
# File 'lib/client_variable/global.rb', line 16
def set_variable(name, value)
values[name] = value
end
|
.values ⇒ Object
4
5
6
|
# File 'lib/client_variable/global.rb', line 4
def values
@datum ||= {}
end
|