summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-02-25 07:52:00 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-02-25 07:52:00 +0900
commitb201dbeb3dededcbbf743fdf555c3530cc5dffb7 (patch)
treece595e9f1f78cae733003119552078b0b2f9900d
parentde0af73c2402f425d80694da59b7beaeeac854ab (diff)
parentf59636304a357f48be63cacebb91ba18f0a9c9fc (diff)
downloadmruby-b201dbeb3dededcbbf743fdf555c3530cc5dffb7.tar.gz
mruby-b201dbeb3dededcbbf743fdf555c3530cc5dffb7.zip
Merge pull request #1736 from take-cheeze/doc_update
add ruby and C code execution order note
-rw-r--r--doc/mrbgems/README.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/mrbgems/README.md b/doc/mrbgems/README.md
index 65b794dc0..481ce08de 100644
--- a/doc/mrbgems/README.md
+++ b/doc/mrbgems/README.md
@@ -203,6 +203,7 @@ mruby can be extended with pure Ruby. It is possible to override existing
classes or add new ones in this way. Put all Ruby files into the *mrblib*
folder.
+
### Pre-Conditions
none
@@ -229,6 +230,10 @@ mruby can be extended with C and Ruby at the same time. It is possible to
override existing classes or add new ones in this way. Put all Ruby files
into the *mrblib* folder and all C files into the *src* folder.
+mruby codes under *mrblib* directory would be executed after gem init C
+function is called. Make sure *mruby script* depends on *C code* and
+*C code* doesn't depend on *mruby script*.
+
### Pre-Conditions
See C and Ruby example.