Questions tagged [load-path]

63 questions
0
votes
1 answer

Requiring file outside of load path in Ruby

I have a gem that I have written that has a number of handlers, each of which has their own ruby file in the gem. I need to add the ability to specify a file on the command line that will be loaded in the same manner as these other handlers. The…
Jericon
  • 4,992
  • 3
  • 20
  • 22
0
votes
1 answer

Is there a better way to ensure ruby's LOAD_PATH doesn't get messed up?

I'm trying to avoid ever adding a redundant path to ruby's LOAD_PATH. It's not a remarkably complicated task, I'm just wondering if there is a cleaner method then what I've come up with. This is my current solution as it stands now: def…
Nathan Lilienthal
  • 864
  • 1
  • 10
  • 16
0
votes
2 answers

Cannot load gem rack/test

I'm trying to load `rack/test` into my application, but it's not working for some reason. When I do: gem list rack-test I get rack-test (0.6.2) So it's installed. I can also get the path with: gem which rack/test which…
Johnny
  • 7,073
  • 9
  • 46
  • 72
1 2 3 4
5