Module: RapidUi
- Defined in:
- lib/rapid_ui/configuration.rb,
lib/rapid_ui.rb,
lib/rapid_ui/helpers.rb,
lib/rapid_ui/railtie.rb,
lib/rapid_ui/version.rb
Overview
handles loading and serving of the configuration files
Defined Under Namespace
Modules: ViewHelpers
Classes: Configuration, Error, Railtie
Constant Summary
collapse
- VERSION =
"1.0.0"
Class Method Summary
collapse
Class Method Details
.boot ⇒ Object
25
26
27
28
29
30
|
# File 'lib/rapid_ui/configuration.rb', line 25
def self.boot
raise "No ui file provided!" if configuration.ui_file.nil?
configuration.ui_yml = YAML.load_file(configuration.ui_file)
configuration.ui_hash = Hashie::Mash.load(configuration.ui_file)
end
|
.configuration ⇒ Object
17
18
19
|
# File 'lib/rapid_ui/configuration.rb', line 17
def self.configuration
@configuration ||= Configuration.new
end
|
21
22
23
|
# File 'lib/rapid_ui/configuration.rb', line 21
def self.configure
yield configuration
end
|