Ruby If-else Statement The Ruby if else statement is used to test condition. There are various types of if statement in Ruby.…
Ruby Tutorial
-
-
Hello Ruby Program Now we will write a simple program of Ruby. Before writing Hello World program, we are assuming that you…
-
Ruby Arrays Ruby arrays are ordered collections of objects. They can hold objects like integer, number, hash, string, symbol or any other…
-
Ruby Iterators Iterator is a concept used in object-oriented language. Iteration means doing one thing many times like a loop. The loop…
-
Ruby Blocks Ruby code blocks are called closures in other programming languages. It consist of a group of codes which is always…
-
Ruby LDAP Net::LDAP for Ruby is also written as net::ldap. It stands for Lightweight Directory Access Protocol. It is an internet standard…
-
Ruby Break Statement The Ruby break statement is used to terminate a loop. It is mostly used in while loop where value…
-
Ruby Methods Ruby methods prevent us from writing the same code in a program again and again. It is a set of…
-
Ruby Case Statement In Ruby, we use ‘case’ instead of ‘switch’ and ‘when’ instead of ‘case’. The case statement matches one statement…
-
Ruby Modules Ruby module is a collection of methods and constants. A module method may be instance method or module method. Instance…