Sha256: 2e3af00cb0d54f12dd40e61464e83d47aab556b76325aecac4e09ce78ba6cacd
Contents?: true
Size: 653 Bytes
Versions: 3
Compression:
Stored size: 653 Bytes
Contents
# * George Moschovitis <gm@navel.gr> # (c) 2004-2005 Navel, all rights reserved. # $Id: conf.rb 302 2005-03-16 14:31:32Z 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', # this is accessible as localhost on windows :host => '0.0.0.0', :port => 9999, :dispatcher => Dispatcher.new, :template_root => 'templates', :public_root => 'public' } hash.update(options) super(hash) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
nitro-0.13.0 | lib/nitro/conf.rb |
nitro-0.14.0 | lib/nitro/conf.rb |
nitro-0.15.0 | lib/nitro/conf.rb |