# File lib/sinatra/contrib/setup.rb, line 20 def autoload(name, path = nil, method = nil) path ||= "sinatra/#{name.to_s.underscore}" extensions[method] << name if method Sinatra.autoload(name, path) end
# File lib/sinatra/contrib/setup.rb, line 8 def extensions @extensions ||= {:helpers => [], :register => []} end
# File lib/sinatra/contrib/setup.rb, line 16 def helpers(name, path = nil) autoload name, path, :helpers end
Generated with the Darkfish Rdoc Generator 2.