Class: Alula::Theme
- Inherits:
-
Object
- Object
- Alula::Theme
- Defined in:
- lib/alula/theme.rb
Class Method Summary collapse
Class Method Details
.find_theme(themename) ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/alula/theme.rb', line 8 def self.find_theme(themename) themepath = nil @@themepaths ||= [] @@themepaths.each do |path| if File.directory?(File.join(path, themename)) themepath = path end end themepath end |
.paths ⇒ Object
20 21 22 |
# File 'lib/alula/theme.rb', line 20 def self.paths @@themepaths end |
.register(path) ⇒ Object
3 4 5 6 |
# File 'lib/alula/theme.rb', line 3 def self.register(path) @@themepaths ||= [] @@themepaths << path end |