8" :class="scrolled && 'is-scrolled'">
NOA
Labs
Tutorials
Courses
Skill Forge
Explore
Labs
Hands-on live sessions
Mentors
Meet the senior engineers
Projects
Real portfolio-ready builds
Talent Directory
Public student profiles
Mock Interview
Practice with real feedback
ATS Resume Checker
Free instant resume scoring
Search docs
Ctrl K
Login
Join Free
Artificial Intelligence
LangChain
LLMs
Machine Learning
Prompt Engineering
RAG (Retrieval-Augmented Generation)
AJAX
GraphQL
Apache Kafka
Microservices
Node.js
RabbitMQ
REST API
WebSockets
Algorithms
Data Structures
Angular
Bootstrap
CSS
HTML
jQuery
Next.js
Nuxt.js
React
Svelte
Tailwind CSS
Vue.js
ASP.NET Core
Django
.NET
Entity Framework Core
FastAPI
Flask
Gin
gRPC
Hibernate
Laravel
NestJS
Spring
Spring Boot
Spring Cloud
Spring Data JPA
Spring MVC
Spring Security
AWS
Azure
CI/CD
Docker
Git
Kubernetes
Linux
Nginx
Terraform
C
C++
C#
Dart
Go
Java
JavaScript
Kotlin
PHP
Python
Ruby
Rust
Swift
TypeScript
Database Design
MongoDB
MySQL
Oracle Database
PostgreSQL
Redis
SQL
System Design
↑↓ navigate
↵ open
esc close
Tutorials
/
Ruby
Ruby menu
Ruby Tutorial
An expressive, developer-friendly language and the home of Ruby on Rails.
Start the Ruby tutorial →
What you'll learn
1. Ruby Introduction
What Ruby is, its relationship to Rails, installing it with rbenv/rvm, and hello world with irb.
2. Syntax and Variables
Ruby variables, types, symbols vs strings, string interpolation, arrays, hashes and control flow.
3. OOP in Ruby
Classes, attr_accessor, inheritance, modules and mixins, and the duck typing philosophy.
4. Blocks, Procs and Metaprogramming
Blocks and yield, Procs vs Lambdas, and an honest intro to method_missing and define_method.
5. Error Handling and Exceptions
begin/rescue/ensure, custom exception classes, retry, and why rescue Exception is a trap.
6. Testing with RSpec
describe/context/it, expectations and matchers, before hooks, and a complete RSpec example.
7. Gems and Bundler
Gemfile and Gemfile.lock, semantic versioning with ~>, and building a simple gem conceptually.
8. Ruby Interview Questions
Real Ruby interview questions and answers on blocks, procs, lambdas, duck typing and modules.