Module: Humpyard
- Defined in:
- lib/humpyard.rb,
lib/humpyard/config.rb,
lib/humpyard/engine.rb,
lib/generators/humpyard.rb,
lib/humpyard/uri_parser.rb,
app/models/humpyard/page.rb,
app/models/humpyard/asset.rb,
app/models/humpyard/element.rb,
app/models/humpyard/news_item.rb,
lib/humpyard/active_model/naming.rb,
app/helpers/humpyard/pages_helper.rb,
app/models/humpyard/pages/news_page.rb,
lib/humpyard/action_controller/base.rb,
lib/humpyard/active_record/acts/page.rb,
app/models/humpyard/pages/static_page.rb,
lib/humpyard/active_record/acts/asset.rb,
app/models/humpyard/pages/virtual_page.rb,
lib/humpyard/active_record/acts/element.rb,
app/models/humpyard/assets/youtube_asset.rb,
app/models/humpyard/elements/box_element.rb,
lib/humpyard/uri_parser/pages_uri_parser.rb,
app/controllers/humpyard/pages_controller.rb,
app/models/humpyard/elements/news_element.rb,
app/models/humpyard/elements/text_element.rb,
lib/humpyard/uri_parser/assets_uri_parser.rb,
app/controllers/humpyard/assets_controller.rb,
app/models/humpyard/assets/paperclip_asset.rb,
app/models/humpyard/elements/media_element.rb,
lib/generators/humpyard/auth/auth_generator.rb,
lib/generators/humpyard/page/page_generator.rb,
app/controllers/humpyard/elements_controller.rb,
app/models/humpyard/elements/sitemap_element.rb,
lib/humpyard/active_record/has/title_for_url.rb,
lib/generators/humpyard/element/element_generator.rb,
lib/humpyard/active_record/acts/container_element.rb,
lib/humpyard/active_model/validators/publish_range.rb,
lib/generators/humpyard/skeleton/skeleton_generator.rb
Defined Under Namespace
Modules: ActionController, ActiveModel, ActiveRecord, Assets, Elements, Generators, Pages, PagesHelper, UriParser Classes: Asset, AssetsController, Config, Element, ElementsController, Engine, ErrorsController, NewsItem, Page, PagesController
Constant Summary collapse
- VERSION =
This is the actual version of the Humpyard gem
::File.read(::File.join(::File.dirname(__FILE__), "..", "VERSION")).strip
Class Method Summary collapse
-
.base_directory ⇒ Object
This is the path to the Humpyard gem’s root directory.
-
.config ⇒ Object
To access the actual configuration of your Humpyard, you can call this.
-
.configure(&block) ⇒ Object
Configure the Humpyard See Humpyard::Config.configure for details.
-
.lib_directory ⇒ Object
This is the path to the Humpyard gem’s lib directory.
-
.load(options = {}) ⇒ Object
:nodoc:.
- .uri_parser ⇒ Object
Class Method Details
.base_directory ⇒ Object
This is the path to the Humpyard gem’s root directory
15 16 17 |
# File 'lib/humpyard.rb', line 15 def base_directory ::File.(::File.join(::File.dirname(__FILE__), '..')) end |
.config ⇒ Object
To access the actual configuration of your Humpyard, you can call this.
An example would be Humpyard.config.www_prefix = 'cms/:locale/'
See Humpyard::Config for configuration options.
32 33 34 |
# File 'lib/humpyard.rb', line 32 def config @config ||= Humpyard::Config.new end |
.configure(&block) ⇒ Object
Configure the Humpyard See Humpyard::Config.configure for details
42 43 44 |
# File 'lib/humpyard.rb', line 42 def configure(&block) config.configure(&block) end |
.lib_directory ⇒ Object
This is the path to the Humpyard gem’s lib directory
20 21 22 |
# File 'lib/humpyard.rb', line 20 def lib_directory ::File.(::File.join(::File.dirname(__FILE__))) end |
.load(options = {}) ⇒ Object
:nodoc:
10 11 12 |
# File 'lib/humpyard.rb', line 10 def self.load = {} #:nodoc: require ::File.('../humpyard/rake_tasks', __FILE__) end |