关于method_missing 和respond_to?的基本用法
method_missing is a well-known tool in the Ruby metaprogramming toolbox. It’s callback method you can implement that gets called when a object tries to call a method that’s, well, missing. A well know...
原创
2012-12-12 07:46:08 ·
430 阅读 ·
0 评论