Module: Brite
- Defined in:
- lib/brite.rb,
lib/brite/page.rb,
lib/brite/part.rb,
lib/brite/post.rb,
lib/brite/site.rb,
lib/brite/model.rb,
lib/brite/config.rb,
lib/brite/layout.rb,
lib/brite/server.rb,
lib/brite/command.rb,
lib/brite/version.rb,
lib/brite/controller.rb
Overview
require ‘brite/part’
Defined Under Namespace
Modules: Command Classes: Config, Controller, Layout, Model, Page, Part, Post, Server, Site
Class Method Summary collapse
-
.cli(*argv) ⇒ Object
Initialize and run Command.
-
.const_missing(name) ⇒ Object
If constant is missing, check project metadata.
-
.metadata ⇒ Hash
Access to project metadata as given in ‘brite.yaml` which is soft linked to the `.ruby` project file.
Class Method Details
.cli(*argv) ⇒ Object
Initialize and run Command.
7 8 9 |
# File 'lib/brite/command.rb', line 7 def self.cli(*argv) Command.call(*argv) end |
.const_missing(name) ⇒ Object
If constant is missing, check project metadata.
17 18 19 |
# File 'lib/brite/version.rb', line 17 def self.const_missing(name) [name.to_s.downcase] || super(name) end |
.metadata ⇒ Hash
Access to project metadata as given in ‘brite.yaml` which is soft linked to the `.ruby` project file.
7 8 9 10 11 12 |
# File 'lib/brite/version.rb', line 7 def self. @metadata ||= ( require 'yaml' YAML.load(File.dirname(__FILE__) + '/../brite.yml') ) end |