Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.ruby > #3827

Re: LoadPath and require confusion, please explain

From Lucky Dev <lucky.developer@gmail.com>
Newsgroups comp.lang.ruby
Subject Re: LoadPath and require confusion, please explain
Date 2011-05-02 04:15 -0500
Organization Service de news de lacave.net
Message-ID <ea962f54b488388ca9cea05b10caf333@ruby-forum.com> (permalink)
References <2f924ae07653151e6e47db274f29bc42@ruby-forum.com>

Show all headers | View raw


But when i say require "something" , something.rb should be present in
the loadpath for the require call to return success....

here for arel, require is returning "true" even when its not in the
load_path and after i call require, the appropriate path is added to
load_path.

does ruby look somewhere else apart from load_path when require/load a
feature ?

-- 
Posted via http://www.ruby-forum.com/.

Back to comp.lang.ruby | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

LoadPath and require confusion, please explain Lucky Dev <lucky.developer@gmail.com> - 2011-05-02 01:35 -0500
  Re: LoadPath and require confusion, please explain Eugen Ciur <ciur.eugen@gmail.com> - 2011-05-02 02:26 -0500
  Re: LoadPath and require confusion, please explain Lucky Dev <lucky.developer@gmail.com> - 2011-05-02 04:15 -0500
    Re: LoadPath and require confusion, please explain OZAWA Sakuro <sakuro@2238club.org> - 2011-05-02 04:22 -0500
    Re: LoadPath and require confusion, please explain Eugen Ciur <ciur.eugen@gmail.com> - 2011-05-02 04:40 -0500
      Re: LoadPath and require confusion, please explain Lucky Dev <lucky.developer@gmail.com> - 2011-05-03 11:37 -0500

csiph-web