Class: RubyWolf::Server
- Inherits:
-
Object
- Object
- RubyWolf::Server
- Defined in:
- lib/ruby_wolf/server.rb
Instance Attribute Summary collapse
-
#app ⇒ Object
readonly
Returns the value of attribute app.
-
#configs ⇒ Object
readonly
Returns the value of attribute configs.
-
#socket ⇒ Object
readonly
Returns the value of attribute socket.
-
#workers ⇒ Object
readonly
Returns the value of attribute workers.
Instance Method Summary collapse
-
#initialize(rack_file, configs) ⇒ Server
constructor
A new instance of Server.
- #start ⇒ Object
Constructor Details
#initialize(rack_file, configs) ⇒ Server
Returns a new instance of Server.
7 8 9 10 11 |
# File 'lib/ruby_wolf/server.rb', line 7 def initialize(rack_file, configs) @rack_file = rack_file @configs = configs @workers = [] end |
Instance Attribute Details
#app ⇒ Object (readonly)
Returns the value of attribute app.
5 6 7 |
# File 'lib/ruby_wolf/server.rb', line 5 def app @app end |
#configs ⇒ Object (readonly)
Returns the value of attribute configs.
5 6 7 |
# File 'lib/ruby_wolf/server.rb', line 5 def configs @configs end |
#socket ⇒ Object (readonly)
Returns the value of attribute socket.
5 6 7 |
# File 'lib/ruby_wolf/server.rb', line 5 def socket @socket end |
#workers ⇒ Object (readonly)
Returns the value of attribute workers.
5 6 7 |
# File 'lib/ruby_wolf/server.rb', line 5 def workers @workers end |