Top Level Namespace
Defined Under Namespace
Modules: Girror
Instance Method Summary collapse
-
#require_all(path) ⇒ Object
Require all of the Ruby files in the given directory.
Instance Method Details
#require_all(path) ⇒ Object
Require all of the Ruby files in the given directory.
path - The String relative path from here to the directory.
Returns nothing.
27 28 29 30 31 32 |
# File 'lib/girror.rb', line 27 def require_all(path) # :nodoc: glob = File.join(File.dirname(__FILE__), path, '*.rb') Dir[glob].each do |f| require f end end |