Skip to content
Browse files

extract out Uv.theme_path ivar

  • Loading branch information...
1 parent 64814c5 commit 5591ac27784b783cd1a4dbe941f6e7f3a4eff65b @technoweenie technoweenie committed Feb 5, 2010
Showing with 3 additions and 2 deletions.
  1. +3 −2 lib/uv.rb
View
5 lib/uv.rb
@@ -6,11 +6,12 @@
module Uv
class << self
- attr_accessor :render_path, :syntax_path, :default_style, :syntaxes
+ attr_accessor :render_path, :theme_path, :syntax_path, :default_style, :syntaxes
end
self.syntax_path = File.join(File.dirname(__FILE__), '..', 'syntax')
self.render_path = File.join(File.dirname(__FILE__), '..', 'render')
+ self.theme_path = File.join(render_path, 'xhtml', 'files', 'css')
self.default_style = 'mac_classic'
self.syntaxes = {}
@@ -48,7 +49,7 @@ def Uv.syntaxes
end
def Uv.themes
- Dir.glob( File.join(@render_path, 'xhtml', 'files', 'css', '*.css') ).collect do |f|
+ Dir.glob( File.join(@theme_path, '*.css') ).collect do |f|
File.basename(f, '.css')
end
end

0 comments on commit 5591ac2

Please sign in to comment.
Something went wrong with that request. Please try again.