Where in the Rubinius source is the code that is responsible for including modules?(Specifically, to place module as super class of object class.)
相关问题
- How to specify memcache server to Rack::Session::M
- Why am I getting a “C compiler cannot create execu
- reference to a method?
- ruby 1.9 wrong file encoding on windows
- gem cleanup shows error: Unable to uninstall bundl
相关文章
- Ruby using wrong version of openssl
- Difference between Thread#run and Thread#wakeup?
- how to call a active record named scope with a str
- “No explicit conversion of Symbol into String” for
- Segmentation fault with ruby 2.0.0p247 leading to
- How to detect if an element exists in Watir
- uninitialized constant Mysql2::Client::SECURE_CONN
- ruby - simplify string multiply concatenation
If you look at the documentation for
Module#include
, you’ll find that it delegates toModule#append_features
:The documentation for
Module#append_features
, in turn, describes (very briefly) how the default Ruby mixin algorithm works:If you look at
Module#append_features
in the Rubinius sourcecode, you’ll find that it is an alias forModule#include_into
:So, finally,
Module#include_into
is the real deal:Your specific question:
is answered in this loop:
Watch for
insert_at
.