class Web_Config

Web_Config is just a wrapper for a Hash with some custom keys instantiated for Oynx use.

Public Class Methods

new() click to toggle source

Set our custom keys to default values

# File lib/oynx/config.rb, line 8
def initialize()
        self["name"]    = "new_site"
        self["charset"] = "utf-8"
        self["css"]     = true
        self["js"]      = true
        self["img"]     = true
end

Public Instance Methods

to_s() click to toggle source

Our Web_Config as a String

# File lib/oynx/config.rb, line 18
def to_s()
        ret = ""
        self.each_pair do |key, val|
                ret += "#{key}: #{val}\n"
        end
        return ret
end