On Monday, 5 March 2012 at 11:37, flex wrote:
> hi, all:
>
> i want to require my own ruby class in a custom function, now i put the ruby
> file in the same directory with custom function, and require it in the
> function file like this:
>
> require File.join([File.expand_path(File.dirname(__FI
hi, all:
i want to require my own ruby class in a custom function, now i put the
ruby file in the same directory with custom function, and require it in the
function file like this:
require File.join([File.expand_path(File.dirname(__FILE__)), 'test.rb'])
but i think this is too ugly, is there a