Ruby Tutorials
In this tutorial, you'll learn about Ruby Tutorials. We cover key concepts, practical examples, and best practices to help you understand and apply this topic effectively.
Ruby is a dynamic, object-oriented scripting language known for its elegant syntax and developer happiness. It powers Ruby on Rails, one of the most popular web frameworks, and tools like Jekyll, Sidekiq, and Chef.
1. What is Ruby?
History, philosophy, Matz, Ruby vs Python
2. Installation & Setup
rbenv, RVM, irb, gem, first program
3. Variables & Types
Dynamic typing, symbols, strings, integers
4. Control Flow
if/unless, case/when, ternary, truthiness
5. Loops & Iteration
each, while, until, times, upto, loop
6. Arrays
Array methods, map, select, reduce, sort
7. Hashes
Hash syntax, symbol keys, fetch, merge
8. Methods
def, return, implicit return, splat, keyword args
9. Classes & Objects
class, initialize, attr_accessor, self
10. Modules
module, include, extend, prepend, namespace
11. Inheritance
< operator, super, ancestors chain
12. Blocks & Procs
blocks, yield, Proc.new, &, call
13. Lambdas
->, lambda, arity, closure
14. Mixins
Comparable, Enumerable, custom mixins
15. Duck Typing
respond_to?, method_missing, dynamic dispatch
16. Open Classes
Monkey patching, refinements, Module#prepend
17. Strings
Interpolation, gsub, split, freeze, encodings
18. Regular Expressions
=~, match, scan, named captures
19. File I/O
File, IO, Dir, CSV, JSON parse
20. Exception Handling
begin/rescue, ensure, raise, custom exceptions
Intermediate & Advanced
21. Enumerable
each, map, select, reduce, group_by, chunk
22. Date & Time
Time, Date, DateTime, strftime
23. Serialization
Marshal, YAML, JSON dump/load
24. Logging
Logger, log levels, formatted output
25. Rails Setup
rails new, MVC, directory structure
26. Active Record
Models, migrations, validations, associations
27. Action Pack
Controllers, routes, params, sessions
28. Action View
ERB, partials, helpers, layouts
29. Migrations
Migration types, rollbacks, indexes
30. Associations
belongs_to, has_many, through, polymorphic
31. Validations & Callbacks
validates, before_save, after_create
32. Testing Rails
RSpec, FactoryBot, Capybara, system tests
33. Method Missing
method_missing, respond_to_missing?
34. Define Method
define_method, class_eval, instance_eval
35. send & respond_to
send, public_send, respond_to?
36. Const Missing
const_missing, autoloading
37. Hooks
included, extended, inherited, method_added
38. DSL Building
Block-based DSL, instance_exec
39. Concurrency
Thread, Mutex, Queue, Ractor
40. Fibers
Fiber, scheduler, non-blocking I/O
41. Gems & Bundler
Gemfile, gemspec, Bundler, publishing
42. Performance
Profiling, Benchmark, memory, JRuby
43. Ruby 3 Features
Ractors, Fiber scheduler, pattern matching
44. Type Checking
Sorbet, RBS, steep, type signatures
45. Project: CLI App
Build a CLI todo app
46. Project: REST API
Build a REST API with Sinatra
47. Project: Web App
Build a blog with Rails
48. Project: Data Pipeline
Build an ETL pipeline
49. Gem Development
Create and publish your own gem
50. Ruby Ecosystem
Sinatra, Hanami, Jekyll, Sidekiq, Devise
Published Topics
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
✓ Live
All 50 topics in Ruby Tutorials are published.