Ruby Complete Masterclass (47 Chapters, 15 Phases)
📌 Covered in this course:
What is Ruby? · Prerequisites · Installation & Bundler · First Program · Variables & Types · Operators & Conditions · Loops · Strings, Arrays & Hashes · Ranges & Symbols · Blocks, Iterators & Enumerable · Methods, Procs & Lambdas · Classes, Attributes, Inheritance & Modules · Metaprogramming · Exceptions, File I/O & Regex · Packages & Testing · Debugging · Web Basics & Sinatra · Ruby on Rails (Routes, Controllers, Views, Active Record, Associations, Forms, APIs, Security, Active Job, Deployment) · Projects & Quiz
Welcome to Our Compiler's Ruby Complete Master Course. Ruby is a dynamic, elegant, object-oriented language created by Yukihiro "Matz" Matsumoto, famous for human-readable code and developer happiness. This comprehensive 47-chapter bootcamp guides you from zero programming experience to building object-oriented CLI tools, metaprogramming scripts, Sinatra services, and full-stack Ruby on Rails web applications.
🎯 Ready to Start Learning Ruby?
Choose where to start: explore Ruby introduction, methods & Procs, OOP classes, Sinatra, Active Record, or Ruby on Rails deployment:
📚 Master Course Curriculum
Phase 01
Ruby Introduction
01
1. What is Ruby?
Ruby ante enti? · Ruby enduku create chesaru? · Ruby features · Ruby vs Python · Ruby vs PHP · Ruby vs JavaScript · Ruby use cases (Web, Scripting, Automation, CLI) · Ruby on Rails overview · Strengths & Limitations
Read Chapter →
02
2. Ruby Prerequisites
Programming basics · Variables · Functions · Conditions · Loops · Arrays · Hashes · OOP basics · HTTP basics · SQL basics · HTML & CSS · Git basics · Command-line basics
Read Chapter →
Phase 02
Setup and First Program
03
3. Ruby Installation
Ruby installation on Windows, macOS, Linux · Checking Ruby version (ruby --version) · gem --version · RubyInstaller · rbenv · RVM · Ruby version managers · IRB · VS Code setup & extensions
Read Chapter →
04
4. Your First Ruby Program
.rb files · puts vs print vs p · Comments (#) · Running Ruby file (ruby script.rb) · Ruby IRB console · Expressions · Statements · Code formatting · Syntax errors
Read Chapter →
05
5. RubyGems & Bundler
Gem ante enti? · RubyGems · gem install · Gemfile · Bundler · bundle install · Gemfile.lock · Dependency versioning · Gem security
Read Chapter →
Phase 03
Variables and Data Types
06
6. Variables & Constants
Local variables (name) · Instance variables (@name) · Class variables (@@name) · Global variables ($name) · Constants (NAME) · Variable naming rules · Parallel assignment · Destructuring
Read Chapter →
07
7. Data Types
Integer · Float · Rational · Complex · String · Symbol (:symbol) · TrueClass · FalseClass · NilClass · Array · Hash · Range · Object · .class · nil? · is_a?
Read Chapter →
08
8. Type Conversion
to_i · to_f · to_s · to_sym · String to integer · String to float · Symbol to string · Safe conversion · Parsing user input (gets.chomp) · Conversion errors
Read Chapter →
Phase 04
Operators and Control Flow
09
9. Operators
Arithmetic operators · Assignment operators · Comparison (==, ===, <=>) · Logical (&&, ||, !) · Range operators (.., ...) · Ternary operator (?:) · Safe navigation (&.) · Nil coalescing (||=) · Spaceship operator (<=>) · Operator precedence · Custom operator methods
Read Chapter →
10
10. Conditions
if · unless · else · elsif · Nested conditions · Modifier if · Modifier unless · Ternary expression · case · when · then · Pattern matching · Truthy and falsy values (only false & nil are falsy!) · Guard clauses
Read Chapter →
11
11. Loops
while · until · for · loop · break · next · redo · retry · Nested loops · Loop modifiers · Ranges with loops · Prefer iterators overview · Practice: Even/Odd, Factorial, Prime, Fibonacci, Number guessing game, Multiplication table, Star patterns
Read Chapter →
Phase 05
Strings, Arrays and Hashes
12
12. Strings
Single-quoted strings · Double-quoted strings · String interpolation · String concatenation · String length (length) · upcase · downcase · strip · include? · start_with? · end_with? · gsub · sub · split · join · slice · capitalize · Multiline strings · Heredoc · Encoding
Read Chapter →
13
13. Arrays
Creating arrays · Array indexes · Reading values · Updating values · Adding values · push · << · pop · shift · unshift · slice · first · last · length · Nested arrays · Array destructuring · Array comparison · Array sorting
Read Chapter →
14
14. Hashes
Hash ante enti? · Key-value pairs · Symbol keys · String keys · Reading values · Updating values · Deleting values · keys · values · fetch · dig · Nested hashes · Hash iteration · Hash defaults · Hash transformation
Read Chapter →
15
15. Ranges & Symbols
Inclusive ranges (1..5) · Exclusive ranges (1...5) · Range iteration · Range to array (to_a) · Symbol ante enti? · Symbols vs strings · Symbol keys · Symbol memory behavior · Symbols in APIs
Read Chapter →
Phase 06
Blocks, Iterators and Enumerable
16
16. Blocks
Block ante enti? · do...end · Curly brace blocks ({ ... }) · Block parameters · Yield · block_given? · Passing blocks · Block scope · Blocks with arrays · Blocks with methods
Read Chapter →
17
17. Iterators
each · each_with_index · times · upto · downto · step · while_each patterns · Nested iteration · Iteration best practices · Enumerator overview
Read Chapter →
18
18. Enumerable
map · select · reject · find · find_all · any? · all? · none? · count · sum · reduce · inject · sort_by · group_by · partition · flat_map · Lazy enumerators
Read Chapter →
Phase 07
Functions and Methods
19
19. Methods
Method definition · Method call · Parameters · Arguments · Return values · Implicit return · Explicit return · Default arguments · Keyword arguments · Splat operator (*args) · Double splat (**kwargs) · Method visibility · Predicate methods (valid?) · Bang methods (sort!)
Read Chapter →
20
20. Procs & Lambdas
Proc ante enti? · Lambda ante enti? · Creating a Proc · Creating a lambda · Calling Proc (.call) · Calling lambda · Proc vs lambda · Passing callable objects · Closures · Method references (&:method) · &block
Read Chapter →
Phase 08
Object-Oriented Ruby
21
21. Classes & Objects
Class ante enti? · Object ante enti? · class · new · initialize · Instance variables (@var) · Instance methods · Object state · Object identity · inspect · to_s · Object lifecycle
Read Chapter →
22
22. Attributes & Encapsulation
attr_reader · attr_writer · attr_accessor · Private methods · Protected methods · Public methods · Getters · Setters · Read-only properties · Validation inside setters · Immutable objects
Read Chapter →
23
23. Inheritance & Polymorphism
Inheritance · < syntax · Parent class · Child class · super · Method overriding · is_a? · kind_of? · Duck typing · Composition vs inheritance · Abstract behavior · Polymorphism
Read Chapter →
24
24. Modules & Mixins
Module ante enti? · module · include · extend · prepend · Instance methods in modules · Class methods in modules · Mixins · Namespaces · Module constants · Reusable behavior
Read Chapter →
25
25. Metaprogramming
Class methods (self.method) · Singleton methods · self · Class variables (@@var) · Class instance variables · define_method · send · respond_to? · method_missing · Metaprogramming risks
Read Chapter →
Phase 09
Exceptions, Files & Regex
26
26. Exceptions
Exception ante enti? · begin · rescue · else · ensure · raise · Standard exceptions · Custom exceptions · Multiple rescue blocks · Exception messages · Exception logging · Retry patterns
Read Chapter →
27
27. File Handling
Opening files · Reading files · Writing files · Appending files · File.read · File.write · File.open · File.foreach · File modes · Directories · File paths · Pathname · Resource cleanup
Read Chapter →
28
28. Regular Expressions
Regex ante enti? · Regex literals (/.../) · match · =~ · scan · gsub · Character classes · Quantifiers · Groups · Anchors · Validation (Email, Phone, Password)
Read Chapter →
Phase 10
Packages, Testing and Debugging
29
29. Packages & Gems
Project modules · require · require_relative · Load paths · Finding & installing gems · Gemfile · Bundler · Lock files · Creating & publishing gems
Read Chapter →
30
30. Testing
Testing ante enti? · Minitest · RSpec · Test files · Assertions · Test setup · Test teardown · Unit tests · Integration tests · Mocking · Stubbing
Read Chapter →
31
31. Debugging
puts debugging · p · debug gem · Breakpoints · Stack traces · Ruby warnings · Logging · Performance profiling · Memory profiling
Read Chapter →
Phase 11
Web Development Basics & Sinatra
32
32. Web Basics
HTTP request · HTTP response · Routing · Controllers · Views · Templates · Forms · Sessions · Cookies · JSON APIs · Middleware · Web security
Read Chapter →
33
33. Sinatra Basics
Sinatra ante enti? · Creating a Sinatra app · Routes · Parameters · Views · JSON responses · Forms · Sessions · Middleware · Database integration · Sinatra project · Deploying Sinatra
Read Chapter →
Phase 12
Ruby on Rails Core
34
34. Ruby on Rails
Rails ante enti? · Ruby vs Rails · MVC architecture · Rails conventions · Rails project creation · Rails folder structure · Rails server · Rails console · Rails routes · Request lifecycle
Read Chapter →
35
35. Rails Routing
Routes file (config/routes.rb) · get · post · put · patch · delete · Named routes · Route parameters · Resource routes · Nested resources · rails routes
Read Chapter →
36
36. Rails Controllers
Controllers · Actions · Parameters · Strong parameters · Rendering views · Redirecting · Flash messages · Before actions · After actions · JSON responses
Read Chapter →
37
37. Rails Views
ERB templates · Output tags (<%= %>) · Escaped output · Layouts · Partials · Helpers · Form helpers · Conditional rendering · Loops · Asset integration
Read Chapter →
38
38. Active Record
Active Record ante enti? · Models · Migrations · Schema · Create/Read/Update/Delete · Validations · Callbacks · Scopes · Query methods · Transactions
Read Chapter →
39
39. Rails Associations
belongs_to · has_one · has_many · has_many :through · has_one :through · Polymorphic associations · Dependent destroy · Eager loading · N+1 queries
Read Chapter →
Phase 13
Rails Forms, APIs and Security
40
40. Rails Forms & Validation
Form builders · form_with · Input fields · Select fields · Model validations (Presence, Format, Length, Uniqueness) · Custom validators · Validation messages
Read Chapter →
41
41. Rails APIs
API-only Rails app · JSON controllers · Serializers · Request parsing · Response formatting · API versioning · Pagination · Filtering · Authentication · CORS
Read Chapter →
42
42. Authentication & Security
User registration · Login · Logout · Password hashing · Sessions · Cookies · CSRF protection · Role-based authorization · Policy objects · XSS · SQL injection · HTTPS
Read Chapter →
Phase 14
Background Jobs, Testing and Deployment
43
43. Background Jobs
Background job ante enti? · Active Job · Queue adapters · Sidekiq overview · Redis · Email jobs · Report generation · Scheduled jobs · Idempotent jobs
Read Chapter →
44
44. Testing Rails Apps
Model tests · Controller tests · Request tests · System tests · Fixtures · Factories · RSpec Rails · Integration tests · Database tests · Mailer tests
Read Chapter →
45
45. Deployment
Production configuration · Environment variables · Asset building · Database migrations · Puma server · Reverse proxy · Docker · Background workers · Scaling
Read Chapter →
Phase 15
Projects & Certification
46
46. Ruby Projects
Building a complete Command-Line / Web CRUD application in Ruby with SQLite database, gems, and OOP architecture
Read Chapter →
47
47. Ruby Quiz
Comprehensive Ruby Knowledge Check · 30 Multiple Choice Certification Exam Questions · Syntax, OOP, Blocks, Enumerable, Rails & Gems
Read Chapter →