root  |_ lib
       |_ great_class.rb
  |_ test
       |_ test_great_class.rb

let's say I add root to my load path
then I can reach the files in lib with require 'lib/great_class'

or in test_great_class.rb you can do
require File.dirname(__FILE__) + "/../lib/great_class"

you are free to add the extension in case you're using require.

---
Met vriendelijke groeten - Best regards - Salutations
Ivan Porto Carrero
Blog: http://flanders.co.nz
Twitter: http://twitter.com/casualjim
Author of IronRuby in Action (http://manning.com/carrero)



On Wed, Sep 30, 2009 at 4:23 PM, Eelco Henderichs <li...@ruby-forum.com>wrote:

> Thanks! The require a file (containing the base) option works.
>
> But adding the path to the file containing the base class does not. Here
> C# reports an error that the file can not be found. Don't what's wrong
> here, but for know the require a file option will do the trick.
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Ironruby-core mailing list
> Ironruby-core@rubyforge.org
> http://rubyforge.org/mailman/listinfo/ironruby-core
>
_______________________________________________
Ironruby-core mailing list
Ironruby-core@rubyforge.org
http://rubyforge.org/mailman/listinfo/ironruby-core

Reply via email to