Top Level Namespace
Defined Under Namespace
Modules: Yescode Classes: Emote, YesApp, YesController, YesLogger, YesMail, YesRackLogger, YesRecord, YesRoutes, YesStatic, YesView
Instance Method Summary collapse
Instance Method Details
#require_all(paths) ⇒ Object
36 37 38 39 40 41 42 43 44 45 46 47 48 |
# File 'lib/yescode.rb', line 36 def require_all(paths) paths.each do |path| if path.end_with?("*") Dir[path].sort.each do |f| next unless f.end_with?("rb") require f end else require path end end end |