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