Class: Web_Config

Inherits:
Hash
  • Object
show all
Defined in:
lib/oynx/config.rb

Instance Method Summary collapse

Constructor Details

#initializeWeb_Config

Returns a new instance of Web_Config.



2
3
4
5
6
7
8
# File 'lib/oynx/config.rb', line 2

def initialize()
	self["name"]    = "new_site"
	self["charset"] = "utf-8"
	self["css"]     = true
	self["js"]      = true
	self["img"]     = true
end

Instance Method Details

#to_sObject



10
11
12
13
14
15
16
# File 'lib/oynx/config.rb', line 10

def to_s()
	ret = ""
	self.each_pair do |key, val|
		ret += "#{key}: #{val}\n"
	end
	return ret
end