Class: Envjs::Net::File
- Inherits:
-
Net::Protocol
- Object
- Net::Protocol
- Envjs::Net::File
- Defined in:
- lib/envjs/net/file.rb
Defined Under Namespace
Class Method Summary collapse
Instance Method Summary collapse
- #finish ⇒ Object
-
#initialize(host, port) ⇒ File
constructor
A new instance of File.
- #request(request) ⇒ Object
- #start ⇒ Object
Constructor Details
#initialize(host, port) ⇒ File
Returns a new instance of File.
14 15 |
# File 'lib/envjs/net/file.rb', line 14 def initialize host, port end |
Class Method Details
.start(host, port) ⇒ Object
17 18 19 |
# File 'lib/envjs/net/file.rb', line 17 def self.start host, port new( host, port ).start end |
Instance Method Details
#finish ⇒ Object
25 26 |
# File 'lib/envjs/net/file.rb', line 25 def finish end |
#request(request) ⇒ Object
28 29 30 |
# File 'lib/envjs/net/file.rb', line 28 def request request Response.new request.path end |
#start ⇒ Object
21 22 23 |
# File 'lib/envjs/net/file.rb', line 21 def start self end |