Tutorials
Go Premium
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
32.1K+ articles
Ruby
1.2K+ articles
Ruby Collections
144+ articles
Ruby Array-class
99+ articles
Ruby Matrix-class
75+ articles
Ruby Time-class
62+ articles
Ruby String-class
56+ articles
Ruby Hash-class
56+ articles
Ruby Enumerable-class
49+ articles
Ruby Integer-class
49+ articles
Ruby-Methods
926+ posts
Recent Articles
Popular Articles
Ruby | Enumerable collect() function
Last Updated: 12 July 2025
The collect() of enumerable is an inbuilt method in Ruby returns a new array with the results of running block once for every element in enum. The object is repeated every...
read more
Ruby
Ruby-Methods
Ruby Enumerable-class
Ruby | Enumerable collect_concat() function
Last Updated: 12 July 2025
The collect_concat() of enumerable is an inbuilt method in Ruby returns a new array with the concatenated results of running block once for every element in enum. In case ...
read more
Ruby
Ruby-Methods
Ruby Enumerable-class
Ruby | Enumerable flat_map function
Last Updated: 12 July 2025
The flat_map() of enumerable is an inbuilt method in Ruby returns a new array with the concatenated results of running block once for every element in enum. In case no blo...
read more
Ruby
Ruby-Methods
Ruby Enumerable-class
Ruby | Enumerable count() function
Last Updated: 12 July 2025
The count() of enumerable is an inbuilt method in Ruby returns the number of elements in the enumerable, or the number of elements that are equal to a given element, or th...
read more
Ruby
Ruby-Methods
Ruby Enumerable-class
Ruby | Enumerable cycle() function
Last Updated: 12 July 2025
The cycle() of enumerable is an inbuilt method in Ruby calls block for each element of enum repeatedly the given numbers times or forever if none or nil is given. If a neg...
read more
Ruby
Ruby-Methods
Ruby Enumerable-class
Ruby | Enumerable detect() function
Last Updated: 12 July 2025
The detect() of enumerable is an inbuilt method in Ruby returns the first element which satisfies the given condition in the block. If there is no block, then it returns t...
read more
Ruby
Ruby-Methods
Ruby Enumerable-class
Ruby getters and setters Method
Last Updated: 11 October 2019
In a Ruby class we may want to expose the instance variables (the variables that are defined prefixed by @ symbol) to other classes for encapsulation. Then, in that case, ...
read more
Ruby
Picked
Ruby-Methods
Ruby | Class Method and Variables
Last Updated: 11 November 2019
Class Methods are the methods that are defined inside the class, public class methods can be accessed with the help of objects. The method is marked as private by default,...
read more
Ruby
Picked
Ruby-Methods
Ruby class
Recursion in Ruby
Last Updated: 12 July 2025
The process in which a function calls itself directly or indirectly is called recursion and the corresponding function is called a recursive function. Recursion makes the ...
read more
Technical Scripter
Ruby
Picked
Ruby-Methods
Method Visibility in Ruby
Last Updated: 12 July 2025
Method visibility in Ruby refers that instance methods can be public, private or protected. Methods are by default public unless they are explicitly declared private or pr...
read more
Ruby
Picked
Ruby-Methods
Ruby-OOP
Pure Function In Scala
Last Updated: 09 March 2022
In any programming language, there are two types of functions:1. PURE FUNCTIONS2. IMPURE FUNCTIONSThere is a basic difference between the two, that is pure function doesn’...
read more
Picked
Scala
Ruby-Basics
Ruby-Methods
Method Overloading In Ruby
Last Updated: 12 July 2025
What is method overloading?Method overloading is a feature that allows a class to have more than one method with same name but different method signature ie. different num...
read more
Ruby
Picked
Ruby-Methods
Ruby - Singleton Methods
Last Updated: 03 July 2020
Ruby’s singleton methods are the methods that can be defined for a specific object only i.e. it works for a single object. These kinds of methods belong to the singleton c...
read more
Ruby
Picked
Ruby-Methods
Ruby - String split() Method with Examples
Last Updated: 15 July 2025
split is a String class method in Ruby which is used to split the given string into an array of substrings based on a pattern specified.Here the pattern can be a Regular E...
read more
Ruby
Ruby-Methods
Ruby-String
Ruby - Method Invocation
Last Updated: 03 July 2020
Method invocation refers to how a method is called in a program. The process of invoking a method in Ruby is quite easy since the use of parenthesis is optional. The use o...
read more
Ruby
Picked
Ruby-Methods
1
2
3
4
...
62
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !