Class: Marsdawn::Storage::Test
- Inherits:
-
Base
- Object
- Base
- Marsdawn::Storage::Test
show all
- Defined in:
- lib/marsdawn/storage/test.rb
Instance Method Summary
collapse
Methods inherited from Base
#clean_up, #finalize, #get_document_info, #key, #lang, #set_document_info, #version
Constructor Details
#initialize(config, opts) ⇒ Test
7
8
9
10
|
# File 'lib/marsdawn/storage/test.rb', line 7
def initialize config, opts
super
@storage = {}
end
|
Instance Method Details
#get(path) ⇒ Object
16
17
18
|
# File 'lib/marsdawn/storage/test.rb', line 16
def get path
@storage[path]
end
|
#set(path, page, exvars, sysinfo) ⇒ Object
12
13
14
|
# File 'lib/marsdawn/storage/test.rb', line 12
def set path, page, exvars, sysinfo
@storage[path] = {:page => page, :exvars => exvars, :sysinfo => sysinfo}
end
|