Module: Themeable
- Defined in:
- lib/themeable.rb,
lib/themeable/theme.rb,
lib/themeable/command.rb,
lib/themeable/railtie.rb,
lib/themeable/version.rb,
lib/themeable/acts_as_themeable.rb,
lib/themeable/css_path_resolver.rb,
lib/themeable/generator_concern.rb
Defined Under Namespace
Modules: ActsAsThemeable, GeneratorConcern, Theme
Classes: Command, CssPathResolver, Railtie
Constant Summary
collapse
- VERSION =
"1.2.0"
- @@theme_set =
Set.new
Class Method Summary
collapse
Class Method Details
.add_theme(theme_class) ⇒ Object
11
12
13
|
# File 'lib/themeable.rb', line 11
def add_theme(theme_class)
@@theme_set << theme_class
end
|
.theme(theme_name) ⇒ Object
19
20
21
|
# File 'lib/themeable.rb', line 19
def theme(theme_name)
themes.find{|t| t.theme_name == theme_name.to_sym } || raise("Theme #{theme_name} not found")
end
|
.themes ⇒ Object
15
16
17
|
# File 'lib/themeable.rb', line 15
def themes
@@theme_set
end
|