Class: James::Config

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

Instance Method Summary collapse

Instance Method Details

#port(value) ⇒ Object



7
8
9
10
# File 'lib/james/config.rb', line 7

def port(value)
  port = value.to_i rescue 0
  Main.port = port if port > 0
end

#require(file, reload = false) ⇒ Object



3
4
5
# File 'lib/james/config.rb', line 3

def require(file, reload = false)
  James.libs[file.to_s] = reload
end