Class: Marsdawn::Storage::Test
- Defined in:
- lib/marsdawn/storage/test.rb
Instance Method Summary collapse
- #get(path) ⇒ Object
-
#initialize(config, opts) ⇒ Test
constructor
A new instance of Test.
- #set(path, page, exvars, sysinfo) ⇒ Object
Methods inherited from Base
#clean_up, #finalize, #get_document_info, #key, #lang, #set_document_info, #version
Constructor Details
#initialize(config, opts) ⇒ Test
Returns a new instance of 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 |