Free Preview: Metaprogramming in Ruby

What Is Metaprogramming?

05:38

What Is Metaprogramming?

Before we jump into real code, it’s important to understand what metaprogramming is, and how and why you should use it. In this lesson, you’ll be given the context you need to apply this skill set.

1.Introduction
3 lessons, 14:41

Free Preview
1.1
Introduction
03:02

Free Preview
1.2
What Is Metaprogramming?
05:38

1.3
Object Hierarchy
06:01

2.Messages
2 lessons, 23:23

2.1
The `method_missing` Method
11:13

2.2
Delegation
12:10

3.Manipulating Ruby Elements
4 lessons, 43:42

3.1
Defining and Manipulating Classes Dynamically
11:12

3.2
Class Methods
04:50

3.3
Defining and Manipulating Variables Dynamically
17:30

3.4
Defining and Manipulating Methods Dynamically
10:10

4.Dynamic Ruby
3 lessons, 31:35

4.1
Procs and Lambdas
13:34

4.2
Evaluating Ruby Code in Runtime
11:37

4.3
Modules
06:24

5.Conclusion
2 lessons, 33:51

5.1
Exercise: Create a DSL
31:29

5.2
Final Tips
02:22


About José Mota
I'm a Rubyist/Javascripter/UI designer; occasional speaker; Mac & Arch Linux user.
+ Expand Bio- Collapse Bio