Class: Rage::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/rage/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



5
6
7
8
9
# File 'lib/rage/configuration.rb', line 5

def initialize
  @threads_count = 1
  @workers_count = -1
  @port = 3000
end

Instance Attribute Details

#portObject

Returns the value of attribute port.



2
3
4
# File 'lib/rage/configuration.rb', line 2

def port
  @port
end

#threads_countObject (readonly)

Returns the value of attribute threads_count.



3
4
5
# File 'lib/rage/configuration.rb', line 3

def threads_count
  @threads_count
end

#workers_countObject

Returns the value of attribute workers_count.



2
3
4
# File 'lib/rage/configuration.rb', line 2

def workers_count
  @workers_count
end