Книга: Metaprogramming Ruby 2
Назад: Quiz: Broken Math
Дальше: Chapter 6: Friday: Code That Writes Code

Wrap-Up

You covered a lot of ground today. Let’s sum it all up:

Also remember that today you used the word “class” as a shortcut to “class or module,” and everything you learned about classes can also be applied to modules: the “current class” might actually be a module, a “class instance variable” could well be a “module instance variable,” and so on.

That was quite a deep dive into Ruby’s object model. As the two of you prepare to leave the office, Bill makes a promise that tomorrow will be less talking and more coding. “I’m really looking forward to that,” he says.

Footnotes

.

Назад: Quiz: Broken Math
Дальше: Chapter 6: Friday: Code That Writes Code