Top Level Namespace
Defined Under Namespace
Modules: URI, Yawast Classes: String
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.
6 7 8 9 10 11 |
# File 'lib/yawast.rb', line 6 def require_all(path) glob = File.join(File.dirname(__FILE__), path + '/**/', '*.rb') Dir[glob].each do |f| require f end end |