public
Rubygem
Description: Merb Core: All you need. None you don't.
Homepage: http://www.merbivore.com
Clone URL: git://github.com/wycats/merb-core.git
Search Repo:
Explain how to set up /lib autoload in documentation.
Michael S. Klishin (author)
Sun May 04 00:16:10 -0700 2008
commit  fffde1570f8f4c82d433e95350da79101396b1f6
tree    346fd4da20901a53be178130d992b8c5261cd3d9
parent  f35001ff89ff452ca1ac09cca3274cbd2912ffc4
...
74
75
76
 
77
78
 
 
 
 
79
 
 
 
 
 
 
80
81
82
...
74
75
76
77
78
 
79
80
81
82
83
84
85
86
87
88
89
90
91
92
0
@@ -74,9 +74,19 @@
0
     # app/parts for parts, Merb components
0
     # app/views for templates
0
     # app/controllers for controller
0
+ # lib for libraries
0
     #
0
- # ==== Examples
0
+ # ==== Notes
0
+ # Autoloading for lib uses empty glob by default. If you
0
+ # want to have your libraries under lib use autoload, add
0
+ # the following to Merb init file:
0
     #
0
+ # Merb.push_path(:lib, Merb.root / "lib", "**/*.rb") # glob set explicity.
0
+ #
0
+ # Then lib/magicwand/lib/magicwand.rb with MagicWand module will
0
+ # be autoloaded when you first access that constant.
0
+ #
0
+ # ==== Examples
0
     # This method gives you a way to build up your own application
0
     # structure, for instance, to reflect the structure Rails
0
     # uses to simplify transition of legacy application, you can

Comments

    No one has commented yet.