2011-11-20 21:21:09 +00:00
|
|
|
/*
|
|
|
|
* literal.js: Simple literal Object store for nconf.
|
|
|
|
*
|
|
|
|
* (C) 2011, Charlie Robbins
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
var util = require('util'),
|
|
|
|
Memory = require('./memory').Memory
|
|
|
|
|
|
|
|
var Literal = exports.Literal = function Literal (store) {
|
|
|
|
Memory.call(this);
|
2011-11-21 01:00:04 +00:00
|
|
|
|
|
|
|
this.type = 'literal';
|
|
|
|
this.readOnly = true;
|
|
|
|
this.store = store || {};
|
2011-11-20 21:21:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
// Inherit from Memory store.
|
|
|
|
util.inherits(Literal, Memory);
|