call-seq: initialize(host = nil, port)
# File /tmp/buildd/evernote-mode-0.10/ruby/lib/thrift/transport/server_socket.rb, line 26 26: def initialize(host_or_port, port = nil) 27: if port 28: @host = host_or_port 29: @port = port 30: else 31: @host = nil 32: @port = host_or_port 33: end 34: @handle = nil 35: end
# File /tmp/buildd/evernote-mode-0.10/ruby/lib/thrift/transport/server_socket.rb, line 43 43: def accept 44: unless @handle.nil? 45: sock = @handle.accept 46: trans = Socket.new 47: trans.handle = sock 48: trans 49: end 50: end
# File /tmp/buildd/evernote-mode-0.10/ruby/lib/thrift/transport/server_socket.rb, line 52 52: def close 53: @handle.close unless @handle.nil? or @handle.closed? 54: @handle = nil 55: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.