class Madness::Theme
Attributes
path[R]
Public Class Methods
new(path=nil)
click to toggle source
# File lib/madness/theme.rb, line 5 def initialize(path=nil) @path = path end
Public Instance Methods
custom?()
click to toggle source
# File lib/madness/theme.rb, line 17 def custom? @custom ||= (path and Dir.exist? path) end
public_path()
click to toggle source
# File lib/madness/theme.rb, line 13 def public_path custom? ? "#{path}/public" : File.expand_path('../../app/public', __dir__) end
views_path()
click to toggle source
# File lib/madness/theme.rb, line 9 def views_path custom? ? "#{path}/views" : File.expand_path('../../app/views', __dir__) end