D
Daniel Schierbeck
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
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