class Jekyll::ThemesControl::Theme
Public Class Methods
new(raw_theme)
click to toggle source
Calls superclass method
# File lib/jekyll-themes-control/theme.rb, line 7 def initialize(raw_theme) @raw_theme = raw_theme.to_s.downcase.strip super(@raw_theme) end
Public Instance Methods
root()
click to toggle source
# File lib/jekyll-themes-control/theme.rb, line 12 def root path = "#{Dir.pwd}/_themes/#{@raw_theme}" @root ||= File.realpath path rescue Errno::ENOENT, Errno::EACCES, Errno::ELOOP raise "Path #{path} does not exist, is not accessible "\ "or includes a symbolic link loop" end