Class: Rage::Configuration
- Inherits:
-
Object
- Object
- Rage::Configuration
- Defined in:
- lib/rage/configuration.rb
Instance Attribute Summary collapse
-
#port ⇒ Object
Returns the value of attribute port.
-
#threads_count ⇒ Object
readonly
Returns the value of attribute threads_count.
-
#workers_count ⇒ Object
Returns the value of attribute workers_count.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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
#port ⇒ Object
Returns the value of attribute port.
2 3 4 |
# File 'lib/rage/configuration.rb', line 2 def port @port end |
#threads_count ⇒ Object (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_count ⇒ Object
Returns the value of attribute workers_count.
2 3 4 |
# File 'lib/rage/configuration.rb', line 2 def workers_count @workers_count end |