Sha256: cc3ab510ec159dea63ac82d7b489c5df957f6fbcb620ecfd2f3903e2ae43684b

Contents?: true

Size: 428 Bytes

Versions: 10

Compression:

Stored size: 428 Bytes

Contents

module Alula
  class Theme
    def self.register(path)
      @@themepaths ||= []
      @@themepaths << path
    end
    
    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
    
    def self.paths
      @@themepaths
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
alula-0.2.3 lib/alula/theme.rb
alula-0.2.1 lib/alula/theme.rb
alula-0.2.0 lib/alula/theme.rb
alula-0.2.0c lib/alula/theme.rb
alula-0.2.0a lib/alula/theme.rb
alula-0.1.4 lib/alula/theme.rb
alula-0.1.3 lib/alula/theme.rb
alula-0.1.1 lib/alula/theme.rb
alula-0.1.0 lib/alula/theme.rb
alula-0.0.1 lib/alula/theme.rb