Using Forwardable in Ruby
Forwardable makes building a new class based on existing work, with a proper interface, almost trivial. We want to rely on what has come before obviously, but with delegation we ca
Read tutorialTHE TUTORIAL LIBRARY
Forwardable makes building a new class based on existing work, with a proper interface, almost trivial. We want to rely on what has come before obviously, but with delegation we ca
Read tutorialGenerator 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 tutorialOne example today. A better developer tomorrow.