Kernel#require accepting multiple arguments?



What is the reason that Kernel#require only accepts one filename?
Implementing a version of `require' that can take multiple arguments is pretty easy:


  module Kernel
    alias_method :__require__, :require

    def require(*filenames)
      filenames.all? { |file| __require__(file) }
    end
  end


Cheers, Daniel .



Relevant Pages

  • Re: Random filenames
    ... >> extension must remain the same for each filename returned. ... > specify under what sort of circumstances duplicates *are* allowed. ... the "state" might contain the PID and date. ... Multiple machines could run the program at ...
    (comp.lang.pascal.misc)
  • Re: Random filenames
    ... > extension must remain the same for each filename returned. ... specify under what sort of circumstances duplicates *are* allowed. ... the "state" might contain the PID and date. ... Multiple machines could run the program at ...
    (comp.lang.pascal.misc)
  • Re: LPCWSTR Variable Corrupted
    ... FileName is an optional parameter "int OpenFile(LPCTSTR FileName = ... Open(pszFileName, openFlags, NULL)) ... The reason I suggested const CString & is to break the OP of the habit of creating a lot ...
    (microsoft.public.vc.mfc)
  • Re: Writing to Serial Port
    ... The only reason to wait is to simplify the programming. ... WriteFile operations, you need to have multiple OVERLAPPED structures, and perhaps even ...
    (microsoft.public.vc.mfc)
  • Re: MDI and headaches.
    ... Assuming your multiple page document was created in Word 2007, you can click on Office Button | Save As, save the file as a Word 97-2003 .doc file, and email that to your recipient. ... the format it prints to is MDI by default. ... For whatever reason, I can not get this tiffile to ...
    (microsoft.public.office.misc)