cgi.rb cgi/session.rb date.rb drb/drb.rb irb.rb optparse.rb rdoc/dot/dot.rb rdoc/generators/template/chm/chm.rb rdoc/generators/template/html/html.rb rdoc/generators/template/xml/xml.rb rdoc/markup/sample/sample.rb rdoc/markup/simple_markup.rb rdoc/rdoc.rb rexml/dtd/dtd.rb rexml/rexml.rb rinda/rinda.rb shell.rb soap/mapping/mapping.rb soap/rpc/rpc.rb soap/soap.rb test/unit.rb test/unit/collector.rb uri.rb webrick.rb webrick/httpauth.rb webrick/httpservlet.rb wsdl/wsdl.rb xsd/xmlparser/xmlparser.rb yaml.rb
alias old_require require def require lib old_require lib rescue LoadError old_require( lib + "/" + File.basename(lib) ) end
https://rcrchive.net/rgarchive/rejected.html#rcr95
--David Black
I don't see it as the same, David. I think that this is a case where we have:
foo/foo.rb foo.rb
If I require 'foo', then foo.rb will be loaded. On the other hand, If I have:
foo/foo.rb
and then require 'foo', then foo/foo.rb will be loaded. I think that this is an acceptable compromise, although I'm not sure I would want it to assume that the default is "foo"; I would prefer that we come up with some sort of default -- possibly configurable (c.f. "index.html"). -- Austin Ziegler
-- matz.
https://rcrchive.net/rgarchive/rejected.html#rcr95
--David Black
I don't see it as the same, David. I think that this is a case where we have:
foo/foo.rb foo.rb
If I require 'foo', then foo.rb will be loaded. On the other hand, If I have:
foo/foo.rb
and then require 'foo', then foo/foo.rb will be loaded. I think that this is an acceptable compromise, although I'm not sure I would want it to assume that the default is "foo"; I would prefer that we come up with some sort of default -- possibly configurable (c.f. "index.html"). -- Austin Ziegler
-- matz.
Back to RCRchive.
RCR Submission page and RCRchive powered by Ruby, Apache, RuWiki (modified), and RubLog