前段时间的一次Rails讲座幻灯片:Ruby中的常量与rails中常量的加载。参考源码特别解析了 Rails 对 Ruby 加载文件的扩展,以及通过 const_missing 实现自动加载常量(即类和模块)的方式。
前段时间的一次Rails讲座幻灯片:Ruby中的常量与rails中常量的加载。参考源码特别解析了 Rails 对 Ruby 加载文件的扩展,以及通过 const_missing 实现自动加载常量(即类和模块)的方式。
EvoLve theme by Theme4Press • Powered by WordPress Imagine::Blog.new
You may say I'm a dreamer, but I'm not the only one.