Return to book
Review this book
About the author
Introduction
1.
前言
2.
实例变量、方法、类
3.
方法的调用
4.
实用元编程方法
5.
绑定
6.
块和绑定
7.
元编程实战
8.
结语
Powered by
GitBook
A
A
Serif
Sans
White
Sepia
Night
Twitter
Google
Facebook
Weibo
Instapaper
Ruby中的元编程
结语
Ruby元编程应用远不止如此,Rails里就大量涉及了这种技术。你可以仔细研读Rails的代码。
参考资料
An Exercise in Metaprogramming with Ruby.
Metaprogramming Ruby
- Author: Paolo Perrotta.
Metaprogramming in Ruby: It’s All About the Self.
Programming Ruby 1.9
- Author: Dave Thomas.
Seeing Metaclasses Clearly.
The Book Of Ruby
- Author: Huw Collingbourne.
The Ruby Object Model and Metaprogramming screencasts
with Dave Thomas.
Understanding Ruby Singleton Classes.
其他参考
倾国剑气
ihower
Free Mind
里克的自习室