Top Level Namespace
Defined Under Namespace
Modules: Rypple
Instance Method Summary collapse
-
#require_all(path) ⇒ Object
Requires all ruby files in a directory.
Instance Method Details
#require_all(path) ⇒ Object
Requires all ruby files in a directory.
path - Relative path from here to the directory.
Returns nothing
8 9 10 11 |
# File 'lib/rypple.rb', line 8 def require_all(path) glob = File.join(File.dirname(__FILE__), path, '*.rb') Dir[glob].each { |f| require f } end |