-
Notifications
You must be signed in to change notification settings - Fork 43
Usage
Andrew Yaroshuk edited this page Jun 8, 2015
·
3 revisions
To start using Amethyst, require it in your project code
require "amethyst"If you want to load Amethyst into a global namespace to be able not to prepend classes with name of modules they are in (for example, Base::Controller), you can load all modules into global namespace next way:
require "amethyst/all"From that moment, you can type App.new instead of Base::App.new, Controller instead Base::Controller, etc.)
Here are list of Amethyst submodules:
Amethyst::BaseAmethyst::DispatchAmethyst::HttpAmethyst::MiddlewareAmethyst::Support