I have the following ruby code which runs in a console application:
require File.dirname(FILE) + ‘/lib/horn’
require File.dirname(FILE) + ‘/lib/dsl’
The file is named hornbuild.rb.
The main ruby file has a require directive for this hornbuild.rb like
I then execute the ruby file like this:
var engine = Ruby.CreateEngine();
The problem is that I can only get this scenario to work by copying the
hornbuild.rb file and lib folder into the bin directory of the console
Can I not put these files in the gems folder or something so they are
If so, how can I achieve this?