Class: Awestruct::CLI::Server
- Inherits:
-
Object
- Object
- Awestruct::CLI::Server
- Defined in:
- lib/awestruct/cli/server.rb
Instance Attribute Summary collapse
-
#server ⇒ Object
readonly
Returns the value of attribute server.
Instance Method Summary collapse
-
#initialize(path, bind_addr = '0.0.0.0', port = 4242) ⇒ Server
constructor
A new instance of Server.
- #run ⇒ Object
Constructor Details
#initialize(path, bind_addr = '0.0.0.0', port = 4242) ⇒ Server
Returns a new instance of Server.
10 11 12 13 14 |
# File 'lib/awestruct/cli/server.rb', line 10 def initialize(path, bind_addr='0.0.0.0', port=4242) @path = path @bind_addr = bind_addr @port = port end |
Instance Attribute Details
#server ⇒ Object (readonly)
Returns the value of attribute server.
8 9 10 |
# File 'lib/awestruct/cli/server.rb', line 8 def server @server end |