Courses
Tutorials
Practice
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
38.1K+ articles
DSA
22.5K+ articles
Python
20.5K+ articles
Experiences
16.6K+ articles
Interview Experiences
14.1K+ articles
Ruby
1.2K+ articles
Ruby-Methods
926+ articles
Programming Language
352+ articles
Ruby-Basics
37+ articles
Ruby Keyword
7+ articles
Ruby-OOP
16 posts
Recent Articles
Popular Articles
Method Visibility in Ruby
Last Updated: 06 March 2020
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
Ruby Hook Methods
Last Updated: 13 August 2021
Ruby Hook Methods are called in reaction to something you do. They are usually used to extend the working of methods at run time. These methods are not defined by default,...
read more
Technical Scripter
Ruby
Picked
Ruby-OOP
Ruby Keyword
Ruby Directories
Last Updated: 25 January 2022
A directory is a location where files can be stored. For Ruby, the Dir class and the FileUtils module manages directories and the File class handles the files. Double dot ...
read more
Ruby
Picked
Ruby-OOP
Instance Variables in Ruby
Last Updated: 17 December 2019
There are four different types of variables in Ruby- Local variables, Instance variables, Class variables and Global variables. An instance variable in ruby has a name sta...
read more
Ruby
Picked
Ruby-Basics
Ruby-OOP
Ruby Static Members
Last Updated: 18 July 2022
In Programming, static keywords are primarily used for memory management. The static keyword is used to share the same method or variable of a class across the objects of ...
read more
Ruby
Picked
Ruby-Basics
Ruby-OOP
Data Abstraction in Ruby
Last Updated: 02 December 2019
The idea of representing significant details and hiding details of functionality is called data abstraction. The interface and the implementation are isolated by this prog...
read more
Ruby
Picked
Ruby-OOP
Polymorphism in Ruby
Last Updated: 21 November 2019
In Ruby, one does not have anything like the variable types as there is in other programming languages. Every variable is an "object" which can be individually modified. O...
read more
Technical Scripter
Ruby
Picked
Ruby-OOP
Private Classes in Ruby
Last Updated: 17 January 2023
The concept of private, protected and public methods in Ruby is a bit different than it other languages like Java. In Ruby, it is all about which class the person is calli...
read more
Ruby
Picked
Ruby-OOP
Ruby | Method overriding
Last Updated: 23 November 2022
Method is a collection of statements that perform some specific task and return the result. Override means two methods having same name but doing different tasks. It means...
read more
Python
Ruby
Ruby-OOP
Object Oriented Programming in Ruby | Set-2
Last Updated: 31 October 2019
Prerequisite: Object Oriented Programming in Ruby | Set-1InheritanceInheritance is one of the solid fundamental characteristics of object-oriented programming. sometimes w...
read more
Programming Language
Ruby
Ruby-OOP
Object-Oriented Programming in Ruby | Set 1
Last Updated: 13 August 2019
When we say object-oriented programming, we mean that our code is centered on objects. Objects are real-life instances that are classified into various types.Let’s take an...
read more
Programming Language
Ruby
Ruby-Basics
Ruby-OOP
Ruby | Encapsulation
Last Updated: 01 January 2019
Encapsulation is defined as the wrapping up of data under a single unit. It is the mechanism that binds together code and the data it manipulates. In a different way, enca...
read more
Ruby
Ruby-OOP
Ruby | Access Control
Last Updated: 04 September 2018
Access control is a very important part of the object-oriented programming language which is used to restrict the visibility of methods and member fields to protect data f...
read more
Ruby
Ruby-OOP
Ruby | Constructors
Last Updated: 24 February 2023
A constructor is a special method of the class that gets automatically invoked whenever an instance of the class is created. Like methods, a constructor may also contain a...
read more
Ruby
Ruby-OOP
Ruby | Inheritance
Last Updated: 05 August 2021
Ruby is the ideal object-oriented language. In an object-oriented programming language, inheritance is one of the most important features. Inheritance allows the programme...
read more
Ruby
Ruby-OOP
1
2
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 !