Anthony Elizondo wrote:
I’ve been looking for some documentation on the proper way to import
libraries, and I can’t seem to find any definite rules.
Suppose I want to “install” OpenOffice4R, OOo4R. Should I just copy
the contents of lib into /usr/local/lib/ruby/1.8? (I’m working in
I think you’ll want to put them under lib/site_ruby/1.8
How about if I just want to import it into my current irb session?
So long as your Ruby load path ($:) knows where to find the libraries
you should be OK.
(I’ve started making a gem version of OOo4R, but assorted demands have
sidetracked me. I’ve ended up not using OOo as much as I had
anticipated, so attention to the Ruby code has waned. And the libs were
written against OOo 1.x, so they may not work with OOo 2.)
“I often work by avoidance.”