Module | Sinatra::Sugar::ClassMethods |
In: |
lib/sinatra/sugar.rb
|
guessed_root | [W] | |
root | [W] |
More advanced register:
Like root_path, but does return an array instead of a string. Optionally takes a block that will be called for each entry once.
Example:
class Foo < BigBand root_glob("app", "{models,views,controllers}", "*.rb") { |file| load file } end