Class: Client::Global

Inherits:
Variable show all
Defined in:
lib/client_variable/global.rb

Class Method Summary collapse

Methods inherited from Variable

global, method_missing, push

Class Method Details

.clearObject



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

.valuesObject



4
5
6
# File 'lib/client_variable/global.rb', line 4

def values
	@datum ||= {}
end