Load Paths and Ruby C-Extensions

How do you allow a C-extension to use rb_f_require to require a file from outside the ext directory (e.g. requiring lib/foo/foo.rb from ext/foo.so).

Answers


Not really sure why this isn't converted into html like the rest of the ruby hacking guide that had been translated, but perhaps some portion of this would be helpful?

http://rhg.rubyforge.org/svn/en/chapter18.txt

Given that rb_f_require appears to do a normal load path search, it would seem it would search out into lib/foo if that is in the search path. However, if you are looking for another foo.rb I would imagine you would have name problems if foo.so appears first. Perhaps using a different name for foo.rb could solve the problem?


Need Your Help

Store value using system preferences

android sharedpreferences

I am trying to store some variables using system preferences.I tried some tutorials, but the application keeps on crashing.Can someone help me out.I also tried according to this.Also this code :

Hard to set up breakpoints in Node-Inspector

javascript node.js debugging express node-inspector

I have setup a web application that works and now I want to learn how to debug it properly without using console.log. I have setup and ran Node-Inspector via node-debug server.js (main script file)...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.