On Sun, Sep 23, 2012 at 7:46 PM, S Ahmed wrote:
> I see what your saying.
>
> I guess what I am asking then is, when developing your own gem, say I am
> developing my gem on my Mac in:
>
> /Users/me/projects/ruby/gem/some_gem_name/
>
> So this means I have to somehow modify my load_path so that I
I see what your saying.
I guess what I am asking then is, when developing your own gem, say I am
developing my gem on my Mac in:
/Users/me/projects/ruby/gem/some_gem_name/
So this means I have to somehow modify my load_path so that I can just
require things like:
require 'folder/file'
And the
>
> That's because most of the time when you require something, it is a gem,
> and gems are installed in specific directories that ruby searches when
> you require something. You can see a list of the directories ruby
> searches when you require something by doing this:
>
> p $LOAD_PATH
7Stud wa
> I've never seen that require in any gems on the web
That's because most of the time when you require something, it is a gem,
and gems are installed in specific directories that ruby searches when
you require something. You can see a list of the directories ruby
searches when you require some
> Also to reference the class, I still needed to prefix the module name
> which is also strange because I am requiring it!
Look up the difference between 'require' and 'include'.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Gro
5 matches
Mail list logo