Class: Web_Config
- Inherits:
-
Hash
- Object
- Hash
- Web_Config
- Defined in:
- lib/oynx/config.rb
Instance Method Summary collapse
-
#initialize ⇒ Web_Config
constructor
A new instance of Web_Config.
- #to_s ⇒ Object
Constructor Details
#initialize ⇒ Web_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_s ⇒ Object
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 |