Top Level Namespace
Defined Under Namespace
Constant Summary collapse
- BASE_PATH =
File.("fly_parser/*.rb", File.dirname(__FILE__))
- LOGO_PATH =
File.("fly_parser/logo.txt", File.dirname(__FILE__))
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.
20 21 22 23 24 25 |
# File 'lib/fly_parser.rb', line 20 def require_all(path) glob = File.(File.join(File.dirname(__FILE__), path, '**', '*.rb')) Dir[glob].each do |f| require f end end |