Class: SharedMemory

Inherits:
Object
  • Object
show all
Defined in:
lib/sharedmem/shared_memory.rb

Direct Known Subclasses

RedisMemory

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeSharedMemory

Returns a new instance of SharedMemory.



4
5
6
# File 'lib/sharedmem/shared_memory.rb', line 4

def initialize
	@prefix = ""
end

Instance Attribute Details

#prefixObject

Returns the value of attribute prefix.



2
3
4
# File 'lib/sharedmem/shared_memory.rb', line 2

def prefix
  @prefix
end

Instance Method Details

#[](name) ⇒ Object



19
20
21
# File 'lib/sharedmem/shared_memory.rb', line 19

def [](name)
	get @prefix+name
end

#[]=(name, value) ⇒ Object



22
23
24
# File 'lib/sharedmem/shared_memory.rb', line 22

def []=(name,value)
	set @prefix+name, value
end

#disposeObject



7
8
# File 'lib/sharedmem/shared_memory.rb', line 7

def dispose
end

#get(name) ⇒ Object



14
15
# File 'lib/sharedmem/shared_memory.rb', line 14

def get(name)
end

#push_prefix(prefix) ⇒ Object



10
11
12
# File 'lib/sharedmem/shared_memory.rb', line 10

def push_prefix(prefix)
	@prefix += prefix
end

#set(name, value) ⇒ Object



16
17
# File 'lib/sharedmem/shared_memory.rb', line 16

def set(name, value)
end