Sha256: f5510b6f42cf56522f93ea4061074377cd403679bcbeb384b1c2ea50445d3827
Contents?: true
Size: 543 Bytes
Versions: 1
Compression:
Stored size: 543 Bytes
Contents
# * George Moschovitis <gm@navel.gr> # (c) 2004-2005 Navel, all rights reserved. # $Id: conf.rb 260 2005-02-15 08:58:04Z gmosx $ require 'glue/flexob' module N # Configuration. class Conf < Flexob def initialize(options) unless options.is_a?(Hash) raise ArgumentError.new('An options hash is required!') end # Default configuration parameters. hash = { :name => 'Nitro Application', :host => 'localhost', :port => 8069, :dispatcher => Dispatcher.new } hash.update(options) super(hash) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nitro-0.10.0 | lib/nitro/conf.rb |