Module: Promethee
- Defined in:
- lib/promethee/data.rb,
lib/promethee.rb,
lib/promethee/configuration.rb,
lib/promethee/rails/version.rb
Overview
The data class can be used for any level: the page, or one of the components
Defined Under Namespace
Modules: Rails
Classes: Configuration, Data
Class Method Summary
collapse
Class Method Details
.configuration ⇒ Object
2
3
4
|
# File 'lib/promethee/configuration.rb', line 2
def self.configuration
@configuration ||= Configuration.new
end
|
6
7
8
|
# File 'lib/promethee/configuration.rb', line 6
def self.configure
yield configuration
end
|
.root ⇒ Object
9
10
11
|
# File 'lib/promethee.rb', line 9
def self.root
Pathname.new(__dir__).parent.realpath
end
|