Using Generator in Ruby
Generator converts an internal iterator (i.e. an Enumerable object) to an external iterator. Note that it is not very fast since it is implemented using continuations, which are cu
Read tutorialTHE TUTORIAL LIBRARY
Generator converts an internal iterator (i.e. an Enumerable object) to an external iterator. Note that it is not very fast since it is implemented using continuations, which are cu
Read tutorialGServer implements a generic server, featuring thread pool management, simple logging, and multi-server management. See xmlrpc/httpserver.rb in the Ruby standard library for an exa
Read tutorialThe Observer pattern, also known as Publish/Subscribe, provides a simple mechanism for one object to inform a set of interested third-party objects when its state changes.
Read tutorialYou must open a connection to an SMTP server before sending messages. The first argument is the address of your SMTP server, and the second argument is the port number. Using SMTP.
Read tutorialMessages are written to files named ‘inbox/1', ‘inbox/2', .… Replace ‘pop.example.com' with your POP3 server address, and ‘YourAccount' and ‘YourPassword' with the appr
Read tutorialAn IMAP client connects to a server, and then authenticates itself using either authenticate() or login(). Having authenticated itself, there is a range of commands available to it
Read tutorialNet::HTTP.Proxy creates http proxy class. It has same methods of Net::HTTP but its instances always connect to proxy, instead of given host.
Read tutorialThis sample code is used to post a form data to an URL.
Read tutorialThese examples are ruby sample code to access any http web page and read its contents
Read tutorialThis class implements the File Transfer Protocol. If you have used a command-line FTP program, and are familiar with the commands, you will be able to use this class easily. Some e
Read tutorialAs with all network services, security needs to be considered when using dRuby. By allowing external access to a Ruby object, you are not only allowing outside clients to call the
Read tutorialThis example illustrates returning a reference to an object from a dRuby call. The Logger instances live in the server process. References to them are returned to the client proces
Read tutorialOne example today. A better developer tomorrow.