Class: Envjs::Net::File

Inherits:
Net::Protocol
  • Object
show all
Defined in:
lib/envjs/net/file.rb

Defined Under Namespace

Classes: Get, Response

Class Method Summary collapse

Instance Method Summary collapse

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

#finishObject



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

#startObject



21
22
23
# File 'lib/envjs/net/file.rb', line 21

def start
  self
end