Sha256: 1aec553b1779bfafcd3af404c4bf9f5f9079a0384931768afa346649ef635713
Contents?: true
Size: 657 Bytes
Versions: 1
Compression:
Stored size: 657 Bytes
Contents
Start the server: ruby -rubygems server.rb Then point your browser at: http://localhost:3000/index.html and click the link. This will send an AJAX request to the server, which in turn returns JSON encoded data. This JSON data is converted to a RubyJS data structure which is actually the same as the data structure that is converted to JSON on the server side (in this example: [{'Hello' => 'World!'}], i.e. an Array that contains a Hash). Then, the #inspect method is called for this data structure, which returns a String representation of that data structure, actually the same as you'd get when you call #inspect in a regular Ruby application.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubyjs-0.8.0 | examples/client_server/README |