Show joins + parts
Page 1 of 1
: thank you pontiki, it all works
: for whatever reason I couldn't add /to/my/folder to '../..'
: and had to do add File.join instead
: File.expand_path(File.dirname(__FILE__), '../..') got me to the lib directory
: but adding to the '../..' string still left me with the lib directory
: anyways, thanks a lot! I've gotta go
: if I'm developing a gem, and I have json files inside the gem's directory, how can I load them from code inside the gem's lib/ folder?
: pontiki: yes. For example, in lib/myfile.rb, I'd like to load a json file
: havenwood: I do know the names, and I'm running 1.9
: pontiki: Would I put that inside the main lib/gem_name.rb file?
: thanks pontiki, I will try that now
: I think so. we'll see
: havenwood: thanks for the info, though I'd rather my gem not require 2.0