class Jekyll::ThemesControl::Munger
Attributes
site[R]
Public Class Methods
new(site)
click to toggle source
# File lib/jekyll-themes-control/munger.rb, line 10 def initialize(site) @site = site end
Public Instance Methods
munge!()
click to toggle source
# File lib/jekyll-themes-control/munger.rb, line 14 def munge! return unless raw_theme unless munged? configure_theme end theme end
Private Instance Methods
configure_theme()
click to toggle source
# File lib/jekyll-themes-control/munger.rb, line 36 def configure_theme return unless theme site.config["theme"] = theme.name site.theme = theme site.send(:configure_include_paths) end
munged?()
click to toggle source
# File lib/jekyll-themes-control/munger.rb, line 24 def munged? site.theme&.is_a?(Jekyll::ThemesControl::Theme) end
raw_theme()
click to toggle source
# File lib/jekyll-themes-control/munger.rb, line 32 def raw_theme config[CONFIG_KEY] end
theme()
click to toggle source
# File lib/jekyll-themes-control/munger.rb, line 28 def theme @theme ||= Theme.new(raw_theme) end