Category: 2 Ruby Advance
-
Ruby XPath and XSLT
Ruby XPath Ruby XPath is a language to find information in an XML file. It is an alternative to view XML file. It is used to navigate through elements and attributes in an XML document, treating that document as a logical ordered tree. Ruby XPath is very useful to get relevant information and attributes from…
-
Ruby XML (REXML)
XML is eXtensible Markup Language like HTML. It allows programmers to develop applications that can be read by other applications irrespective of operating system and developmental language used. It keeps track of small to medium amounts of data without any SQL based technique in backend. REXML is a pure Ruby XML processor. It represents a…
-
Ruby LDAP
Net::LDAP for Ruby is also written as net::ldap. It stands for Lightweight Directory Access Protocol. It is an internet standard protocol used to access directory servers. Its basic search unit is the entity, which corresponds to a person or other domain-specific object. A directory which supports LDAP protocol, typically stores information about a number of…
-
Ruby Thread
Thread means lightweight sub-process. It is a separate path of execution. In Ruby, different parts of a program can run at the same time by either splitting tasks within a program using multiple threading or splitting tasks between different programs using multiple process. Threads are the Ruby implementation for a concurrent programming model. Ruby Multithreading…
-
Ruby Socket Programming
Sockets are the end points of a network communication channel, where client and server communicate to each other. They can communicate either on same machine or on different machines. Types of socket: There are two levels of socket, high and low. Low level access allows you to work on sockets that are supported by your…
-
Ruby Regular Expression
A regular expression is also spelled as regexp which holds a regular expression, used to match a pattern against strings. In Ruby, a pattern is written between forward slash characters. They describe the content of a string. Ruby regular expression is more similar to Perl regular expression. Syntax: Ruby 1.9 uses Oniguruma regular expressions library but Ruby 2.0 uses Onigmo regular…
-
Ruby OOPs Concept
Ruby is a true object oriented language which can be embedded into Hypertext Markup Language. Everything in Ruby is an object. All the numbers, strings or even class is an object. The whole Ruby language is basically built on the concepts of object and data. OOPs is a programming concept that uses objects and their…